-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
How to setup?
- Install jest coverage reporters:
npm i -D jest-junit jest-sonar-reporter- Add jest-sonar config to package.json:
"jest-junit": {
"outputDirectory": "test-reports",
"outputName": "junit.xml"
},
"jestSonar": {
"reportPath": "test-reports",
"reportFile": "test-reporter.xml",
"indent": 4
},- Update .gitignore
echo '.scannerwork' >> .gitignore
echo 'test-reports/**' >> .gitignore- Run sonar-scanner locally:
sonar-scanner -Dproject.settings=sonar-project.app.properties -Dsonar.projectKey=lazyorange_ng-workspacesLinks:
Metadata
Metadata
Assignees
Labels
No labels