diff --git a/.azure-pipelines.yml b/.azure-pipelines.yml index 5a4910ee..c65a813a 100644 --- a/.azure-pipelines.yml +++ b/.azure-pipelines.yml @@ -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') diff --git a/tox.ini b/tox.ini index ad618ed2..16e97648 100644 --- a/tox.ini +++ b/tox.ini @@ -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 =