Skip to content

Commit 0d847b0

Browse files
committed
chore(tests): fix artifacts not captured on failed test
In the previous appveyor config, if a test failed then artifacts would never be uploaded. using after_test fixes this.
1 parent c8e9b3f commit 0d847b0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

appveyor.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ test_script:
1616
- npm --version
1717
# run tests
1818
- npm test
19+
20+
after_test:
1921
- ps: $root = Resolve-Path .\test\artifacts; [IO.Directory]::GetFiles($root.Path, '*.*', 'AllDirectories') | % { Push-AppveyorArtifact $_ -FileName $_.Substring($root.Path.Length + 1) -DeploymentName to-publish }
2022

2123
artifacts:

0 commit comments

Comments
 (0)