How to view in Sonar UI if a line added in a PR is covered by unit tests or not?

It appears the Sonar UI has changed in Sonar Cloud, making it harder to identify which code added in a PR to an existing file is covered by tests. The UI now only shows red markers in the side, without indicating whether a line was introduced in the current PR. Earlier, newly added lines were clearly highlighted with a white background, which made this distinction obvious.

For example, Sonar is showing Uncovered Code like below

But the actual lined touched in the PR is like below

I have placed the PR in a public toy project here.

Sonar UI is here.

Hi,

We’ve got a fix for this that should be deployed today.

 
HTH,
Ann

Hi,

There was a problem yesterday with the deployment, but it should be live now. Can you take another look?

 
Thx,
Ann

1 Like

Thanks it is working and getting the desired behaviour now.

1 Like

Just to complete the thread, so that it may help someone in the future. The light white background is showing up in the Sonar UI where lines that are touched in a PR.

1 Like

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