Testcase crashing means no output...

13 views
Skip to first unread message

Dennis Fantoni

unread,
Sep 24, 2013, 11:22:24 AM9/24/13
to nuni...@googlegroups.com
I have 200+ test methods and when i run the unit test, one of them crashes pretty hard (crashing mono with it in fact, but never mind - it is stuff under development it is not a mono or nunit error).

In this case, the crash leads to not much output from the test runner except the first two lines stating .net version etc.

Is it possible to have the test runner print the name of each method to the console as they are called, and perhaps the name as the individual test finishes?

That would make it easier for me to figure which of the many tests actually crashes everything.

i have tried passing a parameter string "-full" but nothing seems to happen regarding output.

Another option would be to be able to enumerate all tests and start each of them in my program.cs  is that possible?

oh - and if there is some documentation anywhere, i'd love to get my hands on it ;-)

Regards, and thanks for a great product


Dennis

Charlie Poole

unread,
Sep 24, 2013, 6:04:01 PM9/24/13
to nuni...@googlegroups.com
Hi Dennis,

The -labels option will display the name of each test on the console
as it is run.

The -full option applies to the final report, created at the end of
the run, so that's why
you don't see anything. IIRC, it may also be disabled in the latest release.

It's possible for you to tie your own executing program into nunitlite, but it
should not really be necessary. I'd rather have nunitlite do what you need.

The only docs for nunitlite so far are...
1. The text file that comes in the distribution
2. The help message that your test exe will display if you use the -help option
3. The online docs for NUnit 2.6.2. The part that relates to the framework -
attributes, asserts, etc. - is mostly correct for NUnitLite.

Regarding the last point, I have it on my TODO list to annotate the online
NUnit docs to show whether features are supported in NUnitLite.

Charlie
> --
> You received this message because you are subscribed to the Google Groups
> "NUnitLite" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to nunitlite+...@googlegroups.com.
> To post to this group, send email to nuni...@googlegroups.com.
> Visit this group at http://groups.google.com/group/nunitlite.
> For more options, visit https://groups.google.com/groups/opt_out.

Dennis Fantoni

unread,
Sep 24, 2013, 6:12:51 PM9/24/13
to nuni...@googlegroups.com
Thanks, Charlie for taking Your time to answer, much appreciated
 
I downloaded the source and found the -labels commandline option that would print a line for each unit test with its name, just what i needed actually, it works perfectly now. I would've answered my own post, but it didn't show up yet, when i found a solution to my problem.
 
 

Charlie Poole

unread,
Sep 24, 2013, 6:24:08 PM9/24/13
to nuni...@googlegroups.com
Hi Dennis,

Good to here! Your post didn't show up because it was the first from
this email and had to be moderated. Any further posts, will show up
right away.

Charlie
Reply all
Reply to author
Forward
0 new messages