Skip to content

Commit

Permalink
Merge pull request #221 from webknjaz/testing/appveyor-tests-reporting
Browse files Browse the repository at this point in the history
Publish test results in the AppVeyor UI
  • Loading branch information
pquentin committed Jul 29, 2020
2 parents d6bc0cd + 8a2966c commit 6691656
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,19 @@ test_script:
# This is pretty lazy -- we don't go into an empty dir or anything.
# I think pytest will test the installed version? But I dunno the
# coverage will actually work right if just given as "trustme"
- "python -u -m pytest -W error -ra -v -s tests --cov=trustme --cov=tests --cov-config=.coveragerc"
- >-
python -u -m
pytest -W error
-ra -v -s tests
--cov=trustme --cov=tests --cov-config=.coveragerc
--junitxml=.test-results/pytest/results.xml
- "codecov -F windows"

on_finish:
- ps: |
$wc = New-Object 'System.Net.WebClient'
$wc.UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\.test-results\pytest\results.xml))
branches:
except:
- /dependabot/.*/

0 comments on commit 6691656

Please sign in to comment.