Skip to content

Commit

Permalink
add pytest azurepipelines (#897)
Browse files Browse the repository at this point in the history
* add pytest azurepipelines

* add stuff
  • Loading branch information
wkerzendorf authored Mar 9, 2019
1 parent 4958e17 commit e3d3fe6
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,18 +58,19 @@ jobs:
- bash: |
source activate tardis
conda install -y pytest-cov
pytest tardis --tardis-refdata=$(ref.data.home) --junitxml=junit/test-results.xml --cov=tardis --cov-report=xml --cov-report=html
pip install git+https://github.com/tonybaloney/pytest-azurepipelines.git
pytest tardis --tardis-refdata=$(ref.data.home) --test-run-title="TARDIS test $(vm_Image)" --cov=tardis --cov-report=xml --cov-report=html
displayName: 'TARDIS test'
- task: PublishTestResults@2
condition: succeededOrFailed()
inputs:
testResultsFiles: '**/test-*.xml'
testRunTitle: 'Publish test results for TARDIS'
# - task: PublishTestResults@2
# condition: succeededOrFailed()
# inputs:
# testResultsFiles: '**/test-*.xml'
# testRunTitle: 'Test results for TARDIS on $(vm_Image)'

- task: PublishCodeCoverageResults@1
inputs:
codeCoverageTool: Cobertura
summaryFileLocation: '$(System.DefaultWorkingDirectory)/**/coverage.xml'
reportDirectory: '$(System.DefaultWorkingDirectory)/**/htmlcov'
# - task: PublishCodeCoverageResults@1
# inputs:
# codeCoverageTool: Cobertura
# summaryFileLocation: '$(System.DefaultWorkingDirectory)/**/coverage.xml'
# reportDirectory: '$(System.DefaultWorkingDirectory)/**/htmlcov'

0 comments on commit e3d3fe6

Please sign in to comment.