chore: use jest sonar reporter

This commit is contained in:
mathuo 2021-03-28 20:54:43 +01:00
parent 0c6318c655
commit 02568345b6
5 changed files with 24 additions and 2 deletions

3
.gitignore vendored
View File

@ -8,4 +8,5 @@ typedocs/
*-debug.log
.build
storybook-static/
.rollup.cache/
.rollup.cache/
test-report.xml

15
package-lock.json generated
View File

@ -9953,6 +9953,15 @@
}
}
},
"jest-sonar-reporter": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/jest-sonar-reporter/-/jest-sonar-reporter-2.0.0.tgz",
"integrity": "sha512-ZervDCgEX5gdUbdtWsjdipLN3bKJwpxbvhkYNXTAYvAckCihobSLr9OT/IuyNIRT1EZMDDwR6DroWtrq+IL64w==",
"dev": true,
"requires": {
"xml": "^1.0.1"
}
},
"jest-util": {
"version": "26.6.2",
"resolved": "https://registry.npmjs.org/jest-util/-/jest-util-26.6.2.tgz",
@ -16406,6 +16415,12 @@
"integrity": "sha512-D3RuNkynyHmEJIpD2qrgVkc9DQ23OrN/moAwZX4L8DfvszsJxpjQuUq3LMx6HoYji9fbIOBY18XWBsAux1ZZUA==",
"dev": true
},
"xml": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/xml/-/xml-1.0.1.tgz",
"integrity": "sha1-eLpyAgApxbyHuKgaPPzXS0ovweU=",
"dev": true
},
"xml-name-validator": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-3.0.0.tgz",

View File

@ -42,6 +42,7 @@
"gulp-concat": "^2.6.1",
"gulp-dart-sass": "^1.0.2",
"jest": "^26.6.3",
"jest-sonar-reporter": "^2.0.0",
"jsdom": "^16.4.0",
"lerna": "^4.0.0",
"merge2": "^1.4.1",

View File

@ -21,4 +21,5 @@ module.exports = {
'<rootDir>/packages/dockview/src/__tests__/__mocks__',
],
coverageDirectory: '<rootDir>/packages/dockview/coverage/',
testResultsProcessor: 'jest-sonar-reporter',
};

View File

@ -2,6 +2,11 @@ sonar.projectKey=mathuo_dockview
sonar.organization=dockview
sonar.inclusions=packages/dockview/**/*
sonar.exclusions=packages/dockview/src/__tests__/**
sonar.tests=packages/dockview/src/__tests__
sonar.testExecutionReportPaths=packages/dockview/test-report.xml
sonar.javascript.lcov.reportPaths=packages/dockview/coverage/lcov.info
# This is the name and version displayed in the SonarCloud UI.
#sonar.projectName=dockview
@ -13,4 +18,3 @@ sonar.inclusions=packages/dockview/**/*
# Encoding of the source code. Default is default system encoding
#sonar.sourceEncoding=UTF-8
sonar.javascript.lcov.reportPaths=packages/dockview/coverage/lcov.info