ci: fix test results not being merged correctly
This commit is contained in:
parent
b8af312ab1
commit
0babbde00e
|
@ -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)
|
||||||
|
|
Reference in a new issue