Skip to content
This repository was archived by the owner on May 22, 2019. It is now read-only.

Commit e0ce931

Browse files
committed
Improve test coverage report on Azure Pipelines (#49)
The reports are rendered without CSS on Azure Pipelines, see this issue: [microsoft/azure-pipelines-tasks#3027](microsoft/azure-pipelines-tasks#3027). There are workaround, but I reckon it's not worth adding further dependencies for the project to solve this.
1 parent 1c35eaa commit e0ce931

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

azure-pipelines.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,6 @@ steps:
3333

3434
- task: PublishCodeCoverageResults@1
3535
inputs:
36-
summaryFileLocation: $(System.DefaultWorkingDirectory)/**/clover.xml
36+
codeCoverageTool: Cobertura
37+
summaryFileLocation: '$(System.DefaultWorkingDirectory)/coverage/cobertura-coverage.xml'
38+
reportDirectory: '$(System.DefaultWorkingDirectory)/coverage/lcov-report'

jestconfig.json

+10-1
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,14 @@
1818
"dist-esm"
1919
],
2020
"testResultsProcessor": "./node_modules/jest-junit-reporter",
21-
"collectCoverage": true
21+
"collectCoverage": true,
22+
"coveragePathIgnorePatterns": [
23+
"/node_modules/",
24+
"/test/"
25+
],
26+
"coverageReporters": [
27+
"cobertura",
28+
"lcov",
29+
"text"
30+
]
2231
}

0 commit comments

Comments
 (0)