[MonoDevelop] nunit trace output

Andres Meyer andres.meyer at computer.org
Mon Dec 13 06:28:15 EST 2010


Hi,

thanks for the tip, I tried just with nunit-console and found that the
"TRACE" flag is not set by default in an nunit project in monodevelop,
so it is not compiled with it and therefore does not work. If I set it
manually, its ok. So my first problem is solved.
What I also see is that there is a stacktrace printed on the nunit
console (in case of an error in the test), which is not visible in
monodevelop. That would also be nice to see, but not important for now.

Cheers,
Andres

On Mon, 2010-12-13 at 10:16 +0100, Lluis Sanchez Gual wrote:
> Hi,
> 
> I have never used Trace in this context, so I can't tell how is it
> supposed to work. If the output of Trace is printed by default when
> running the tests using nunit-console, then the MonoDevelop add-in
> should do the same. In that case, feel free to file a bug and I'll take
> a look.
> 
> Lluis.
> 
> El dt 07 de 12 de 2010 a les 15:27 +0100, en/na Andres Meyer va
> escriure:
> > Hi there,
> > 
> > I would like to show trace output of the test dll and the dll being
> > tested in the monodevelop nunit console. I did not manage.
> > I guess its a quite common setup with Trace.WriteLine("xxx") statements
> > everywhere. Using Console.WriteLine works fine. From the debugger I can
> > see that there is a ConsoleTraceListener and a TextWriterListener in
> > Trace.Listeners in the nunit Init function. I tried (just in case) to
> > manually add a another ConsoleTraceListener and write my own
> > minimalistic ConsoleTraceListener, but it just does not trigger. It
> > could have something to do with the trace switches, but I dont know how
> > to set these for nunit.
> > 
> > What am I missing here? I did search bugzilla and the list archives but
> > did not find anything that would help, so if I missed it, just point me
> > there.
> > 
> > Cheers,
> > Andres
> > 
> > 
> > 
> > _______________________________________________
> > Monodevelop-list mailing list
> > Monodevelop-list at lists.ximian.com
> > http://lists.ximian.com/mailman/listinfo/monodevelop-list
> 
> 




More information about the Monodevelop-list mailing list