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