diff --git a/eng/devices/android.cake b/eng/devices/android.cake index 8329d2e11ecb..6f966485c29f 100644 --- a/eng/devices/android.cake +++ b/eng/devices/android.cake @@ -365,11 +365,7 @@ Task("cg-uitest") Information("Add Where filter to NUnit {0}", TEST_WHERE); nunitSettings.Where = TEST_WHERE; } - RunTestsNunit(testLibDllPath, nunitSettings); - - // When all tests are inconclusive the run does not fail, check if this is the case and fail the pipeline so we get notified - FailRunOnOnlyInconclusiveTests(System.IO.Path.Combine(nunitSettings.Work.FullPath, "TestResult.xml")); }); RunTarget(TARGET); diff --git a/eng/devices/devices-shared.cake b/eng/devices/devices-shared.cake index c29e4ba60041..252dad1a8a8c 100644 --- a/eng/devices/devices-shared.cake +++ b/eng/devices/devices-shared.cake @@ -8,15 +8,3 @@ if (string.Equals(TARGET, "uitest", StringComparison.OrdinalIgnoreCase)) DEFAULT_PROJECT = "../../src/Controls/tests/UITests/Controls.AppiumTests.csproj"; DEFAULT_APP_PROJECT = "../../src/Controls/samples/Controls.Sample.UITests/Controls.Sample.UITests.csproj"; } - -void FailRunOnOnlyInconclusiveTests(string testResultsFile) -{ - // When all tests are inconclusive the run does not fail, check if this is the case and fail the pipeline so we get notified - var totalTestCount = XmlPeek(testResultsFile, "/test-run/@total"); - var inconclusiveTestCount = XmlPeek(testResultsFile, "/test-run/@inconclusive"); - - if (totalTestCount.Equals(inconclusiveTestCount)) - { - throw new Exception("All tests are marked inconclusive, no tests ran. There is probably something wrong with running the tests."); - } -} \ No newline at end of file diff --git a/eng/devices/ios.cake b/eng/devices/ios.cake index a7a64fc972a8..407721d6e0b3 100644 --- a/eng/devices/ios.cake +++ b/eng/devices/ios.cake @@ -292,9 +292,6 @@ Task("cg-uitest") nunitSettings.Where = TEST_WHERE; } RunTestsNunit(testLibDllPath, nunitSettings); - - // When all tests are inconclusive the run does not fail, check if this is the case and fail the pipeline so we get notified - FailRunOnOnlyInconclusiveTests(System.IO.Path.Combine(nunitSettings.Work.FullPath, "TestResult.xml")); }); RunTarget(TARGET);