From 2f2cfb36eb73b2b3af935761b3c144ac65189682 Mon Sep 17 00:00:00 2001 From: Dean Ellis Date: Tue, 22 May 2018 16:04:36 +0100 Subject: [PATCH] [Xamarin.Android.Build.Tests] Flush our test output. (#1714) 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. --- .../Tests/Xamarin.Android.Build.Tests/Utilities/BaseTest.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Xamarin.Android.Build.Tasks/Tests/Xamarin.Android.Build.Tests/Utilities/BaseTest.cs b/src/Xamarin.Android.Build.Tasks/Tests/Xamarin.Android.Build.Tests/Utilities/BaseTest.cs index f59be71c4ad..e073374bff6 100644 --- a/src/Xamarin.Android.Build.Tasks/Tests/Xamarin.Android.Build.Tests/Utilities/BaseTest.cs +++ b/src/Xamarin.Android.Build.Tasks/Tests/Xamarin.Android.Build.Tests/Utilities/BaseTest.cs @@ -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