Re: Output from Console.WriteLine methods is deferred

"Eric Teutsch" <[email protected]> Sat, 19 Jul 2008 10:39:18 -0400
Newsgroups gmane.comp.windows.dotnet.nunit.user
Message-ID <000601c8e9ad$3a6ac930$af405b90$@ca>
Try to put this after the Console.WriteLine:
Console.Out.Flush();



-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of "Andrés G.
Aragoneses"
Sent: July 19, 2008 09:23
To: [email protected]
Subject: [Nunit-users] Output from Console.WriteLine methods is deferred

Hello. I've been using NUnit for a long time and I think it rocks! Many 
thanks to all the devs.

And now I would like to ask a question: I've been noticing that, if my 
unit tests write some text to the output (Console.WriteLine), it only 
gets shown when nunit-console finishes all the tests. This may be a 
feature and not a bug, but there's a problem with this behaviour: it 
prevents easy debugging for when the unit tests enter in an infinite 
loop, because you cannot see what's happenning.

Is there any command line to get direct output from the unit tests 
without being deferred?

Thanks!
		Andrés

-- 


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Nunit-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nunit-users


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/