add coverage report

This commit is contained in:
Pig Fang 2019-02-16 18:08:41 +08:00
parent 91763122c7
commit fe821c3e8b

View File

@ -59,7 +59,7 @@ jobs:
- script: |
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'
- task: PublishTestResults@2
@ -67,3 +67,7 @@ jobs:
inputs:
testRunner: JUnit
testResultsFiles: './junit.xml'
- task: PublishCodeCoverageResults@1
codeCoverageTool: cobertura
summaryFileLocation: ./coverage/cobertura-coverage.xml