try moving junit into tox.ini

This commit is contained in:
Matt Cooper 2019-05-04 16:59:10 -04:00
parent e8d838a551
commit 459176a719
2 changed files with 3 additions and 3 deletions

View file

@ -50,12 +50,12 @@ jobs:
- script: pip install -U tox
displayName: 'Install tox'
- script: tox -- --junitxml=unittests/TEST-$(Agent.JobName).xml
- script: tox
displayName: 'Run tox'
- task: PublishTestResults@2
inputs:
testResultsFiles: '**/TEST-*.xml'
testResultsFiles: 'test-results.xml'
testRunTitle: '$(Agent.JobName)'
condition: eq(variables['publish.test.results'], 'true')

View file

@ -35,7 +35,7 @@ commands =
pip install -q -e examples/javascript[test]
# pytest-cov doesn't seem to play nice with -p
coverage run -p -m pytest tests examples {posargs}
coverage run -p -m pytest --junitxml=test-results.xml tests examples
[testenv:docs-html]
deps =