diff --git a/DeviceTests/build.cake b/DeviceTests/build.cake index 35655c5..96af220 100644 --- a/DeviceTests/build.cake +++ b/DeviceTests/build.cake @@ -43,6 +43,15 @@ Func DownloadTcpTextAsync = (int port, FilePath filename) = stream.CopyTo(file); }); +Action AddPlatformToTestResults = (FilePath testResultsFile, string platformName) => { + if (FileExists(testResultsFile)) { + var txt = FileReadText(testResultsFile); + txt = txt.Replace(" { @@ -107,6 +116,8 @@ Task ("test-ios-emu") Information("Waiting for tests..."); tcpListenerTask.Wait (); + AddPlatformToTestResults(IOS_TEST_RESULTS_PATH, "iOS"); + // Close up simulators Information("Closing Simulator"); ShutdownAllAppleSimulators (); @@ -215,6 +226,8 @@ Task ("test-android-emu") Information("Waiting for tests..."); tcpListenerTask.Wait (); + AddPlatformToTestResults(ANDROID_TEST_RESULTS_PATH, "Android"); + // Close emulator emu.Kill(); }); @@ -272,6 +285,8 @@ Task ("test-uwp-emu") Information("Waiting for tests..."); tcpListenerTask.Wait (); + AddPlatformToTestResults(UWP_TEST_RESULTS_PATH, "UWP"); + // Uninstall the app (this will terminate it too) uninstallPS(); });