Skip to content

Commit

Permalink
[Xamarin.Android.Build.Tests] Flush our test output. (dotnet#1714)
Browse files Browse the repository at this point in the history
Our wrench build if timing out because its not getting any console
output from Nunit.  This is because Nunit is buffering the output.

Flush the Output so we get decent progress messages.
  • Loading branch information
dellis1972 authored and jonpryor committed May 22, 2018
1 parent bc2b6fb commit 2f2cfb3
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -303,12 +303,14 @@ public void FixtureSetup ()
public void TestSetup ()
{
TestContext.Out.WriteLine ($"[TESTLOG] Test {TestName} Starting");
TestContext.Out.Flush ();
}

[TearDown]
protected virtual void CleanupTest ()
{
TestContext.Out.WriteLine ($"[TESTLOG] Test {TestName} Complete");
TestContext.Out.Flush ();
if (System.Diagnostics.Debugger.IsAttached || TestContext.CurrentContext.Test.Properties ["Output"] == null)
return;
// find the "root" directory just below "temp" and clean from there because
Expand Down

0 comments on commit 2f2cfb3

Please sign in to comment.