add coverage report
This commit is contained in:
parent
91763122c7
commit
fe821c3e8b
|
|
@ -59,7 +59,7 @@ jobs:
|
||||||
|
|
||||||
- script: |
|
- script: |
|
||||||
yarn lint
|
yarn lint
|
||||||
yarn test --ci --reporters=default --reporters=jest-junit --coverage
|
yarn test --ci --reporters=default --reporters=jest-junit --coverage --coverageReporters=cobertura
|
||||||
displayName: 'Run Test'
|
displayName: 'Run Test'
|
||||||
|
|
||||||
- task: PublishTestResults@2
|
- task: PublishTestResults@2
|
||||||
|
|
@ -67,3 +67,7 @@ jobs:
|
||||||
inputs:
|
inputs:
|
||||||
testRunner: JUnit
|
testRunner: JUnit
|
||||||
testResultsFiles: './junit.xml'
|
testResultsFiles: './junit.xml'
|
||||||
|
|
||||||
|
- task: PublishCodeCoverageResults@1
|
||||||
|
codeCoverageTool: cobertura
|
||||||
|
summaryFileLocation: ./coverage/cobertura-coverage.xml
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user