Set junitxml and colors using PYTEST_ADDOPTS [skip travis] [skip appveyor]
This commit is contained in:
parent
b595587031
commit
215d537624
|
@ -1,12 +1,10 @@
|
|||
# Python package
|
||||
# Create and test a Python package on multiple Python versions.
|
||||
# Add steps that analyze code, save the dist with the build record, publish to a PyPI-compatible index, and more:
|
||||
# https://docs.microsoft.com/azure/devops/pipelines/languages/python
|
||||
|
||||
trigger:
|
||||
- master
|
||||
- features
|
||||
|
||||
variables:
|
||||
PYTEST_ADDOPTS: "--junitxml=build/test-results/$(tox.env).xml --color=yes"
|
||||
|
||||
jobs:
|
||||
|
||||
- job: 'Test'
|
||||
|
@ -37,7 +35,7 @@ jobs:
|
|||
- script: python -m pip install --upgrade pip && pip install tox
|
||||
displayName: 'Install tox'
|
||||
|
||||
- script: python -m tox -e $(tox.env) -- --junitxml=build/test-results/$(tox.env).xml
|
||||
- script: python -m tox -e $(tox.env)
|
||||
displayName: 'Run tests'
|
||||
|
||||
- task: PublishTestResults@2
|
||||
|
|
Loading…
Reference in New Issue