File tree 2 files changed +30
-1
lines changed
2 files changed +30
-1
lines changed Original file line number Diff line number Diff line change @@ -25,9 +25,11 @@ test_script:
25
25
- npm --version
26
26
# run tests
27
27
- gulp test --release true
28
+ - ps : ./test/uploadResults.ps1
28
29
- gulp coveralls
29
30
30
- # Don't actually build.
31
+
32
+ # Don't run MS build step
31
33
build : off
32
34
33
35
cache :
Original file line number Diff line number Diff line change
1
+ # Upload results to AppVeyor one by one
2
+
3
+ $testsuites = [xml ](get-content .\test\coverage\test-results .xml)
4
+
5
+ $anyFailures = $FALSE
6
+ foreach ($testsuite in $testsuites.testsuites.testsuite ) {
7
+ write-host " $ ( $testsuite.name ) "
8
+ foreach ($testcase in $testsuite.testcase ){
9
+ $failed = $testcase.failure
10
+ $time = $testsuite.time
11
+ if ($testcase.time ) { $time = $testcase.time }
12
+ if ($failed ) {
13
+ write-host " Failed $ ( $testcase.name ) $ ( $testcase.failure.message ) "
14
+ Add-AppveyorTest $testcase.name - Outcome Failed - FileName $testsuite.name - ErrorMessage $testcase.failure.message - Duration $time
15
+ }
16
+ else {
17
+ write-host " Passed $ ( $testcase.name ) "
18
+ Add-AppveyorTest $testcase.name - Outcome Passed - FileName $testsuite.name - Duration $time
19
+ }
20
+
21
+ }
22
+ }
23
+
24
+ if ($anyFailures -eq $TRUE ){
25
+ write-host " Failing build as there are broken tests"
26
+ $host.SetShouldExit (1 )
27
+ }
You can’t perform that action at this time.
0 commit comments