Skip to content

Commit

Permalink
[TouchRunner] Print test output to the console. (#75)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
rolfbjarne committed Jul 14, 2020
1 parent ab5dce0 commit 55c747f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions NUnitLite/TouchRunner/TouchRunner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -494,6 +494,10 @@ public virtual void TestFinished (ITestResult r)
Writer.Write (" : {0}", message.Replace ("\r\n", "\\r\\n"));
}
Writer.WriteLine ();
#if NUNITLITE_NUGET
if (!string.IsNullOrEmpty (result.Output))
Writer.WriteLine (result.Output);
#endif

string stacktrace = result.StackTrace;
if (!String.IsNullOrEmpty (result.StackTrace)) {
Expand Down

0 comments on commit 55c747f

Please sign in to comment.