Re: Output from Console.WriteLine methods is deferred
"Charlie Poole" <[email protected]> Sat, 19 Jul 2008 13:42:23 -0700
| Newsgroups | gmane.comp.windows.dotnet.nunit.user |
|---|---|
| Message-ID | <002901c8e9df$f41959a0$6401a8c0@ferrari> |
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=/