ci: fix test results not being merged correctly

This commit is contained in:
Jens Langhammer 2020-07-10 19:11:36 +02:00
parent b8af312ab1
commit 0babbde00e
1 changed files with 9 additions and 3 deletions

View File

@ -226,15 +226,21 @@ stages:
pipenv run coverage combine coverage-e2e/coverage coverage-unittest/coverage
pipenv run coverage xml
pipenv run coverage html
find .
- task: PublishCodeCoverageResults@1
inputs:
codeCoverageTool: Cobertura
codeCoverageTool: 'Cobertura'
summaryFileLocation: 'coverage.xml'
pathToSources: '$(System.DefaultWorkingDirectory)'
reportDirectory: 'htmlcov'
- task: PublishTestResults@2
condition: succeededOrFailed()
inputs:
testRunTitle: 'Publish test results for Python $(python.version)'
testResultsFiles: 'coverage-e2e/unittest.xml:coverage-unittest/unittest.xml'
testResultsFormat: 'JUnit'
testResultsFiles: |
coverage-e2e/unittest.xml
coverage-unittest/unittest.xml
mergeTestResults: true
- task: CmdLine@2
env:
CODECOV_TOKEN: $(CODECOV_TOKEN)