Sonarcloud not populating dashboard, but providing coverage in PRs

Right now we are getting coverage data reported for our pull requests, but not for our repo (dashboard). Any insight into why this is happening would be greatly appreciated. We are using Ruby for our backend and Simplecov (v0.16.1) for our coverage reporting. Through Github actions, we run the same thing we run for pull requests on pushes to our main branch as well.

current setup for sonar properties:

sonar.organization=..
sonar.projectKey=..
sonar.host.url=https://sonarcloud.io

sonar.c.file.suffixes=-
sonar.cpp.file.suffixes=-
sonar.objc.file.suffixes=-

sonar.coverage.exclusions=./app/assets/**/*,./config/**/*,./db/**/*,./app/**/*.test.*
sonar.cpd.exclusions=./app/**/*.test.*

sonar.ruby.coverage.reportPaths=coverage/.resultset.json

sonar.sources=./app, ./config, ./db, ./lib
sonar.test.inclusions=./spec

Hey there.

  • Can you post your GitHub Actions YAML file?
  • What do the logs say – any difference between your PRs and main branch? Look for logs starting around here (and turn on DEBUG level logging – sonar.verbose=true) to see more details.

INFO: Sensor SimpleCov Sensor for Ruby coverage [ruby]

Ended up resolving this issue by using the github sonarcloud action instead of running a script to injest the data to sonarcloud

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.