I have an angular project that is being scanned by Sonarqube through Jenkins. I get the code coverage but sonarqube won't show the number of unit tests (*.spec.ts files) we have written.
From sonarqube test script:
sonar-scanner \
-Dsonar.sources=. \
-Dsonar.tests=. \
-Dsonar.exclusions=**/*.spec.ts \
-Dsonar.tests.inclusions=**/*.spec.ts \
...
I have no access to the sonarqube ui since this is enterprise. Everything is being configured through scripts/config files in angular. Is there a way to see the number of angular unit tests on the sonarqube website after the scan is done?
P.S.: Originally I had -Dsonar.exclusions=node_modules, **/.spec.ts \ but this will throw an error on Jenkins saying **/.spec.ts is an unrecognized command.