Add ability to report code coverage of only new code in (Github) pull requests

It would be very beneficial if once a pull request is created and the code coverage for the pull request is calculated, to be able to report the code coverage in the originating pull request so that the number can be used to estimated newly added code has been well covered by tests.

All in all, it would be nice to know whether the estimated code coverage after merging will increase or decrease as well.

Hi @Vanda_Cabanova
Thank you for your feedback and feature request :slight_smile:
As you can see on the screenshot below, we already display the code coverage of the current branch and the calculation of the code coverage after the merge.

I’m not sure I understand properly your post though. Would you like to have a indicator that says if you are increasing or decreasing the code coverage instead of comparing the numbers by yourself?

Thanks.
Kind regards,
Christophe

Hi @Christophe_Havard, I’m having the same problem that @Vanda_Cabanova report.
Only estimated after merge is show.
The projects I’m working on are in Go.
We use the following configs at our sonar-project.properties

sonar.sources=.
sonar.exclusions=**/*_test.go,**/vendor/**,**/*_mock.go,**/mock/**,**/pb/**

sonar.tests=.
sonar.test.inclusions=**/*_test.go

sonar.go.coverage.reportPaths=coverage.out

Thank you!

Hi @tiaguinho and welcome to our community :slight_smile:
I’m not sur I understand properly your message : is there a question you expect me to answer? If so, I will move your post to the Get Help section.

Thanks.
Kind regards,
Christophe