Unit tests not showing up in sonar dashboard

Must-share information (formatted with Markdown):
Sonarqube 8.4.1.35646

I am using sonar cli running inside docker to analyze my ruby project. It is showing the coverage correctly but showing “-” in unit tests metric.

Following is sonar.properties file:

# Path is relative to the sonar-project.properties file. Defaults to .
sonar.sources=lib

# Encoding of the source code. Default is default system encoding
#sonar.sourceEncoding=UTF-8

# Test location
sonar.tests=spec,component_tests/spec
sonar.test.inclusions=**/*_spec.rb

# Test coverage locations
sonar.ruby.coverage.reportPaths=reports/coverage/unit/.resultset.json,reports/coverage/component/.resultset.json

# Rubocop report path
sonar.ruby.rubocop.reportPaths=reports/rubocop/rubocop-result.json

Can someone help what I am missing.
Himanshu

Hi,

First, your version is past EOL. You should upgrade to either the latest version or the current LTS at your earliest convenience. Your upgrade path is:

8.4.1 → 8.9.2 → 9.1 (last step optional)

Regarding your actual question, sonar.ruby.rubocop.reportPaths isn’t in the docs, and as far as I know, Rubocop reports aren’t supported.

 
:woman_shrugging:
Ann