Environment:
- SonarQube 9.2.4
- Bitbucket Image for scanning: sonarsource/sonarqube-scan:1.0.0
What are you trying to achieve?
- Get the unit test count populated in SonarQube
What have you tried so far to achieve this?
I have a ruby project where the tests are located in
- spec/**
In my sonar-project.properties file I have the following (somewhat redacted)
sonar.projectKey=my-api
sonar.organization=my-org
sonar.sources=app,config,db,lib
sonar.tests=spec
sonar.test.inclusions=spec/**/*_spec.rb
sonar.exclusions=**node_modules/**,**/build_files/**,**/spec/**,**/vendor/**
sonar.ruby.coverage.reportPaths=coverage/coverage.json
With this, my test coverage populates as expected
But, as you can see the unit tests count is blank. I have read through this support forum and tried every permutation of config I could find, but I am at a loss and any help would be appreciated.