It sounds like something is wrong with the contents of /home/jenkins/agent/workspace/ABC_PR-1239/coverage/coverage.json’. Does it look as expected to you?
This isn’t a valid SonarQube Version – check the footer of your SonarQube instance for the true version and report back!
Yes, the path which I have mentioned it’s Jenkin path. /home/jenkins/agent/workspace/ABC_PR-1239/
and on root of my project I am generating coverage.json file coverage/coverage.json
If I made any changes to this path then it gives below error,
ERROR: SimpleCov report not found: ‘coverage/coverage.json’
I’m not quite sure how you’ve landed on another format, except that the output you’ve shared seems to match this JSON formatter rather than this one (which appears to be more closely tied to the simplecov project, and produces the expected format).
Yes, I have used gem simplecov-json and it is generating this JSON format. I will try by removing it and will check default simplecov’s generated JSON format.
Hi Colin, After removing gem simplecov-json I can able to get data in suggested json format. Here, is file for your reference. But, still I am not able to see the coverage details in the dashboard. In logs, I didn’t find any error messages. Can you please help me what I am missing here. coverage.json (12.9 KB)
Can you share the full logs from analysis (the output from the scanner, where you are now passing the new coverage report), and a screenshot of where you see 0% coverage being reported in SonarQube?