js-techie
(techie)
October 27, 2022, 12:18pm
1
Hi
I ran a java project in local, in my local all new lines are covered by test cases. But when i run sonar analysis coverage is showing 0% in sonarcloud and the new lines are showing as ‘not covered by tests’ in sonarcloud.
Colin
(Colin)
October 28, 2022, 4:07pm
2
Hey there.
What steps are you taking to import code coverage into SonarCloud today? What do the logs say in your analysis?
When coverage data isn’t appearing as expected in SonarQube Server / Community Build or SonarQube Cloud, the first place you should look is the scanner logs.
Where do I find the scanner logs?
This will likely be broken out into its own guide soon
The Scanner logs are the output of executing one of the scanners , either directly or wrapped by one of many integrations, such as the SonarScanner for Jenkins , SonarScanner for Azure DevOps , SonarQube /SonarCloud GitHub Actions or SonarQube /…