From c4cd4297db0174041cba98e43cc5cac441cb0781 Mon Sep 17 00:00:00 2001 From: Chris Blume Date: Sun, 30 Dec 2018 06:05:52 -0800 Subject: [PATCH] Upload test suite results to AppVeyor The tests were previously being run but their results were not being displayed in AppVeyor. Displaying those results requires saving the results to a xml file and uploading it to AppVeyor, using a known format and a per-run destination URL. This commit adds the capabiliy to display test results in AppVeyor. --- .appveyor.yml => Tooling/AppVeyor/AppVeyor.yml | 6 +++--- Tooling/AppVeyor/junit-results.xml | 7 +++++++ 2 files changed, 10 insertions(+), 3 deletions(-) rename .appveyor.yml => Tooling/AppVeyor/AppVeyor.yml (65%) create mode 100644 Tooling/AppVeyor/junit-results.xml diff --git a/.appveyor.yml b/Tooling/AppVeyor/AppVeyor.yml similarity index 65% rename from .appveyor.yml rename to Tooling/AppVeyor/AppVeyor.yml index c1791d5..fb514c4 100644 --- a/.appveyor.yml +++ b/Tooling/AppVeyor/AppVeyor.yml @@ -26,6 +26,6 @@ configuration: - Release test_script: - #- "%APPVEYOR_BUILD_FOLDER%/Projects/VisualStudio/maxAutomatedTests/Win32/Debug/maxAutomatedTests.exe" - - echo "%APPVEYOR_BUILD_FOLDER%/Projects/VisualStudio/maxAutomatedTests/%PLATFORM%/%CONFIGURATION%/maxAutomatedTests.exe" - - "%APPVEYOR_BUILD_FOLDER%/Projects/VisualStudio/maxAutomatedTests/%PLATFORM%/%CONFIGURATION%/maxAutomatedTests.exe" \ No newline at end of file + - "%APPVEYOR_BUILD_FOLDER%/Projects/VisualStudio/maxAutomatedTests/%PLATFORM%/%CONFIGURATION%/maxAutomatedTests.exe" + - ps: $wc = New-Object 'System.Net.WebClient' + - ps: $wc.UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\Tooling\AppVeyor\junit-results.xml)) diff --git a/Tooling/AppVeyor/junit-results.xml b/Tooling/AppVeyor/junit-results.xml new file mode 100644 index 0000000..760e652 --- /dev/null +++ b/Tooling/AppVeyor/junit-results.xml @@ -0,0 +1,7 @@ + + + + + + +