Is the NUnit Console dumped to a file?

313 views
Skip to first unread message

Nichole Dozier

unread,
Nov 19, 2009, 11:48:24 AM11/19/09
to NUnit-Discuss
New user to NUnit and running V2.51.9189. Is the NUnit Console being
dumped to a file? Or is there a trace file of the contents of the
NUnit Console screen? One thing that my SQA group would like to do is
to view the contents of each time we run our tests within NUnit.

Thanks >>> Nichole

Charlie Poole

unread,
Nov 19, 2009, 12:37:49 PM11/19/09
to nunit-...@googlegroups.com
NUnit saves the results of each run to an xml file, which you
can view or transform as you like. The defaut name is
TestResult.xml.

Text output from your test may be redirected using a
command line option. Note that this does not redirect
text output that NUnit creates itself. Use shell
redirection to put that output as well as any
non-redirected test output to a file.

Charlie
> --
>
> You received this message because you are subscribed to the
> Google Groups "NUnit-Discuss" group.
> 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=.
>
>
>



CSharpner

unread,
Nov 20, 2009, 12:56:32 PM11/20/09
to nunit-...@googlegroups.com
Another option, that I do, is to create your own logging class and write to that instead with your own "Log" method.  Your log method can do whatever extra stuff it needs, in addition to copying to stdout (console).  I use mine to keep track of indentation (among other things), so each level deep in method calls I am, my output is indented, with no coding effort in the unit test code.

Nichole Dozier

unread,
Nov 20, 2009, 3:54:42 PM11/20/09
to NUnit-Discuss
Charlie, Thanks for the info.
> >http://groups.google.com/group/nunit-discuss?hl=.- Hide quoted text -
>
> - Show quoted text -

Nichole Dozier

unread,
Nov 20, 2009, 4:03:07 PM11/20/09
to NUnit-Discuss
CSharpner: We were hoping that there was an easier solution like
redirecting the text output to a command line however we'll attempt to
implement your suggestion. Thanks!

On Nov 20, 12:56 pm, CSharpner <csharp...@gmail.com> wrote:
> Another option, that I do, is to create your own logging class and write
> to /that/ instead with your own "Log" method.  Your log method can do
> > For more options, visit this group athttp://groups.google.com/group/nunit-discuss?hl=.- Hide quoted text -

Mike Quinn

unread,
Nov 24, 2009, 2:32:40 PM11/24/09
to NUnit-Discuss
You're welcome. Also, all the output /is/ already going to the
command line... if you run your tests with the command line tool
rather than the GUI. You can then just direct the output into a file
from the command line.

http://csharpner.blogspot.com

On Nov 20, 4:03 pm, Nichole Dozier <velve...@gmail.com> wrote:
> CSharpner:  We were hoping that there was an easier solution like
> redirecting the text output to a command line however we'll attempt to
> implement your suggestion.  Thanks!
>
> > > For more options, visit this group athttp://groups.google.com/group/nunit-discuss?hl=.-Hide quoted text -
Reply all
Reply to author
Forward
0 new messages