try moving junit into tox.ini
This commit is contained in:
parent
e8d838a551
commit
459176a719
2 changed files with 3 additions and 3 deletions
|
|
@ -50,12 +50,12 @@ jobs:
|
||||||
- script: pip install -U tox
|
- script: pip install -U tox
|
||||||
displayName: 'Install tox'
|
displayName: 'Install tox'
|
||||||
|
|
||||||
- script: tox -- --junitxml=unittests/TEST-$(Agent.JobName).xml
|
- script: tox
|
||||||
displayName: 'Run tox'
|
displayName: 'Run tox'
|
||||||
|
|
||||||
- task: PublishTestResults@2
|
- task: PublishTestResults@2
|
||||||
inputs:
|
inputs:
|
||||||
testResultsFiles: '**/TEST-*.xml'
|
testResultsFiles: 'test-results.xml'
|
||||||
testRunTitle: '$(Agent.JobName)'
|
testRunTitle: '$(Agent.JobName)'
|
||||||
condition: eq(variables['publish.test.results'], 'true')
|
condition: eq(variables['publish.test.results'], 'true')
|
||||||
|
|
||||||
|
|
|
||||||
2
tox.ini
2
tox.ini
|
|
@ -35,7 +35,7 @@ commands =
|
||||||
pip install -q -e examples/javascript[test]
|
pip install -q -e examples/javascript[test]
|
||||||
|
|
||||||
# pytest-cov doesn't seem to play nice with -p
|
# 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]
|
[testenv:docs-html]
|
||||||
deps =
|
deps =
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue