Hi All , I have integrated code coverage in my react app - Jest unit tests with Istanbul , Coverage
is showing as 40-43 %
i have excluded some files in Jest coverage -
“coveragePathIgnorePatterns”: [
“node_modules”,
“components/reports”,
“components/eup”
]
The same % is not getting reflected in Sonarqube dashboard , it is not excluding the IgnorePatterns.
I also tried - -Dsonar.exclusions=./node_modules,./src/components/reports,./src/components/eup \ - in config.yml
Hi,
Welcome to the community!
This dusty, but still-relevant blog post may help:
Regarding your exclusions, but setting sonar.exclusions
you completely excluded the files from analysis. Probably you wanted to set coverage exclusions.
HTH,
Ann