Coverage on New code

Hello Team,

I’m using SonarQube Version 7.9.2, I have overall code coverage and code coverage for the new code.

My assumption was overall code coverage was the coverage achieved (57.7%) for the previous build and code coverage for new code (45.7%) is for the new lines added.

To check if that is the case I rebuilt the code to see of new code coverage % would be merged with existing coverage % but the result still remains the same i.e overall: 57.7% and code on new coverage 45.7%

Could you please let me know what the expected behavior.

Overall Code refers to your entire codebase – both old and new code. “New Code” (and therefore, Coverage on New Code) is a subset of the Overall Code.

Thanks Colin!