[mono] Enable parallel mode for xunit on Android by default (#37058)
authorEgor Bogatov <egorbo@gmail.com>
Sun, 31 May 2020 13:28:47 +0000 (16:28 +0300)
committerGitHub <noreply@github.com>
Sun, 31 May 2020 13:28:47 +0000 (16:28 +0300)
src/libraries/Common/tests/AndroidTestRunner/AndroidTestRunner.cs
src/libraries/System.Runtime/tests/System/Type/TypePropertyTests.cs
tools-local/tasks/mobile.tasks/AndroidAppBuilder/Templates/runtime-android.c

index 1360ad0..f099fcf 100644 (file)
@@ -30,7 +30,8 @@ public class SimpleAndroidTestRunner : AndroidApplicationEntryPoint, IDevice
         }
         int exitCode = 0;
         s_MainTestName = Path.GetFileNameWithoutExtension(s_testLibs[0]);
-        var simpleTestRunner = new SimpleAndroidTestRunner(true);
+        string? verbose = Environment.GetEnvironmentVariable("XUNIT_VERBOSE")?.ToLower();
+        var simpleTestRunner = new SimpleAndroidTestRunner(verbose == "true" || verbose == "1");
         simpleTestRunner.TestsCompleted += (e, result) => 
         {
             if (result.FailedTests > 0)
index fc683bd..a821952 100644 (file)
@@ -195,6 +195,7 @@ namespace System.Tests.Types
         }
 
         [Fact]
+        [ActiveIssue("https://github.com/dotnet/runtime/issues/31713", TestRuntimes.Mono)]
         public void IsByRef_Get_ReturnsExpected()
         {
             Type t = CreateType();
@@ -531,7 +532,6 @@ namespace System.Tests.Types
         public override Type BaseType => typeof(ValueType);
     }
 
-    [ActiveIssue("https://github.com/dotnet/runtime/issues/31713", TestRuntimes.Mono)]
     public class VoidTests : StructTypeTestBase
     {
         public override Type CreateType() => typeof(void);
index 4a2af6a..871708c 100644 (file)
@@ -139,8 +139,9 @@ mono_mobile_runtime_init (void)
 {
     // uncomment for debug output:
     //
-    // setenv ("MONO_LOG_LEVEL", "debug", TRUE);
-    // setenv ("MONO_LOG_MASK", "all", TRUE);
+    // setenv ("XUNIT_VERBOSE", "true", true);
+    // setenv ("MONO_LOG_LEVEL", "debug", true);
+    // setenv ("MONO_LOG_MASK", "all", true);
 
     bool wait_for_debugger = false;
     chdir (bundle_path);