Skip to content

Commit 3392d2a

Browse files
mfikesdnolen
authored and
dnolen
committed
CLJS-2712: Make Windows CI fail if a test fails
1 parent 875c42a commit 3392d2a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Diff for: appveyor.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,10 @@ install:
3939

4040
test_script:
4141
- cmd: lein test
42-
# surprisingly this is the only way to have the output shown in Appveyor
43-
- cmd: powershell -noninteractive -noprofile -command .\script\test.ps1
42+
- cmd: powershell -noninteractive -noprofile -command .\script\test.ps1 > test-out.txt
43+
- cmd: type test-out.txt
44+
# Since tests are currently only run in 1 JavaScript environment (SpiderMonkey), look for exactly one count of "0 failures, 0 errors."
45+
- cmd: powershell -noninteractive -noprofile -command if (-not ((sls -Pattern '0 failures, 0 errors.' -SimpleMatch test-out.txt).count -eq 1)) { exit 1 }
4446

4547
# Don't actually build (MSBuild).
4648
build: off

0 commit comments

Comments
 (0)