Skip to content
This repository was archived by the owner on Jan 10, 2025. It is now read-only.

Commit c151a18

Browse files
authored
[TouchRunner] Print test output to the console. (#75)
Updated versions of NUnit will capture Console.Out during a test run. We want to show it in the Console, so write it there when the test has finished. I couldn't find a way to tell NUnit to not capture Console.Out in the first place.
1 parent 74fbc3f commit c151a18

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

NUnitLite/TouchRunner/TouchRunner.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -494,6 +494,10 @@ public virtual void TestFinished (ITestResult r)
494494
Writer.Write (" : {0}", message.Replace ("\r\n", "\\r\\n"));
495495
}
496496
Writer.WriteLine ();
497+
#if NUNITLITE_NUGET
498+
if (!string.IsNullOrEmpty (result.Output))
499+
Writer.WriteLine (result.Output);
500+
#endif
497501

498502
string stacktrace = result.StackTrace;
499503
if (!String.IsNullOrEmpty (result.StackTrace)) {

0 commit comments

Comments
 (0)