NUnit 2.6 RC - Issue with test time print out

17 views
Skip to first unread message

Ryan Boggs

unread,
Feb 6, 2012, 10:09:15 AM2/6/12
to nunit-...@googlegroups.com
Hi,

Just grabbed NUnit 2.6 release candidate.  It seems to be working ok so far but the test result time print out seems to be inconsistent.  Sometimes a time will print out fine while other times, it'll just display "Time:   seconds".  NUnit 2.5 doesn't seem to have this problem.

FYI - I am working on updating NAnt's nunit2 task with the latest version of nunit, which is where I am running into this issue.  If anyone is interested, my repo is here:
https://github.com/rmboggs/nant/tree/nunitupdates

Thanks,
Ryan

Charlie Poole

unread,
Feb 6, 2012, 11:59:17 AM2/6/12
to nunit-...@googlegroups.com
Hi Ryan,

Is this problem with the Gui or the console runner? If it's the Gui, there
are several places where the time is displayed, so please indicate which.
Have you found a particular way to trigger this problem?

Charlie

> --
> You received this message because you are subscribed to the Google Groups
> "NUnit-Discuss" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/nunit-discuss/-/T4XqPZtNX_wJ.
> To post to this group, send email to nunit-...@googlegroups.com.
> To unsubscribe from this group, send email to
> nunit-discus...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/nunit-discuss?hl=en.

Ryan Boggs

unread,
Feb 6, 2012, 12:17:35 PM2/6/12
to NUnit-Discuss
I'm using the API directly. Code file can be found here:
https://github.com/rmboggs/nant/blob/nunitupdates/src/NAnt.NUnit/NUnit2/NUnit2Task.cs

This issue seems to be happening to certain test dlls. Let me see if
I can get a log file together to help illustrate this issue further.

Thanks,
Ryan

Charlie Poole

unread,
Feb 6, 2012, 1:06:41 PM2/6/12
to nunit-...@googlegroups.com
Hi Ryan,

From the code, it seems you are creating the output yourself, using the
xsl transform. Since NUnit no longer uses it, I suppose it's possible that
the XML format and the transform have diverged. Take a look at what's
in the raw xml file for the cases where you have incorrect output.

Charlie

Ryan Boggs

unread,
Feb 6, 2012, 5:38:44 PM2/6/12
to NUnit-Discuss
It looks like the time is omitted whenever a test assembly contains
tests that are ignored. At least in the xml test results file. I'll
post the output xml files somewhere if needed. Please let me know.

Thanks,
Ryan

On Feb 6, 10:06 am, Charlie Poole <nunit...@gmail.com> wrote:
> Hi Ryan,
>
> From the code, it seems you are creating the output yourself, using the
> xsl transform. Since NUnit no longer uses it, I suppose it's possible that
> the XML format and the transform have diverged. Take a look at what's
> in the raw xml file for the cases where you have incorrect output.
>
> Charlie
>
>
>
>
>
>
>
> On Mon, Feb 6, 2012 at 9:17 AM, Ryan Boggs <rmbo...@gmail.com> wrote:
> > I'm using the API directly.  Code file can be found here:
> >https://github.com/rmboggs/nant/blob/nunitupdates/src/NAnt.NUnit/NUni...

Charlie Poole

unread,
Feb 6, 2012, 5:59:52 PM2/6/12
to nunit-...@googlegroups.com
Posting the result file would help. In principle, an ignored test would not
have a time, since it didn't run. But that should not impact the summary unless
the assembly as a whole was ignored. Try running against mock-assembly.dll,
which has some ignored tests.

Charlie

Ryan Boggs

unread,
Feb 5, 2012, 7:27:03 PM2/5/12
to nunit-...@googlegroups.com
Hi,

Just grabbed NUnit 2.6 release candidate. It seems to be working ok
so far but the test result time print out seems to be inconsistent.

Sometimes a time will print out while other times, it'll just display

Ryan Boggs

unread,
Feb 6, 2012, 6:37:40 PM2/6/12
to NUnit-Discuss
Looks like my original email posted again due to the moderation
issue. Go ahead and ignore the email above.

I tested mock-assembly.dll and it printed out normally. Upon closer
inspection of my test lib xml results, nunit is marking my whole
assembly as "executed=false, result=ignored" even when just a small
handful of tests are ignored. The mock-assembly is being marked as
"executed=true, result=error".

<test-suite type="Assembly" name="D:\nant.git\build\net-4.0.win32\nant-
debug\bin\NAnt.Core.Tests.dll" executed="False" result="Ignored">
<test-suite type="Assembly" name="D:\test\mock-assembly.dll"
executed="True" result="Failure" success="False" time="0.047"
asserts="0">

Thanks,
Ryan

Charlie Poole

unread,
Feb 6, 2012, 7:23:02 PM2/6/12
to nunit-...@googlegroups.com
Sounds like a bug me. There have been some changes in the way that
test results propogate upward and this may be an unintended consequence.

Would you please file a bug report?

Charlie

Ryan Boggs

unread,
Feb 6, 2012, 7:59:55 PM2/6/12
to NUnit-Discuss
Not a problem. I have Xml output examples when testing with both 2.5
and 2.6 that I can provide.

I will report this tonight, if not tomorrow, in the same place I
reported the last bug.

Thanks for your time. :)
Ryan

Ryan Boggs

unread,
Feb 6, 2012, 10:49:33 PM2/6/12
to nunit-...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages