Re: Output from Console.WriteLine methods is deferred

"Andrés G. Aragoneses" <[email protected]> Sun, 20 Jul 2008 18:33:57 +0200
Newsgroups gmane.comp.windows.dotnet.nunit.user
Message-ID <[email protected]>
I'm using NUnit version 2.2.0 and I notice the deferred printing 
behaviour even when my unit tests behave normally (without infinite loops).

Regards,

	Andrés

Charlie Poole wrote:
> That may work, but I'm guessing not. It sounds as if your program
> may just be taking up all the cpu cycles.
> 
> This could also be a bug - in which case I hope he's using
> an old version of NUnit. :-)
> 
> Charlie
> 
>> -----Original Message-----
>> From: [email protected] 
>> [mailto:[email protected]] On Behalf 
>> Of Eric Teutsch
>> Sent: Saturday, July 19, 2008 7:39 AM
>> To: '"Andrés G. Aragoneses"'; [email protected]
>> Subject: Re: [Nunit-users] Output from Console.WriteLine 
>> methods is deferred
>>
>> 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=/
>> _______________________________________________
>> 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=/


-------------------------------------------------------------------------
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=/