The main reason that I posted here was this: we want to be able to see which of the code added in a PR hasn’t been tested yet. The annoying thing is that this is working for us in another repo which has identical configuration. In that project, it looks like this:
As you can see, SC has correctly detected that 10 lines of new code were added and none of them are covered by tests. We can open the file and see that the new code is highlighted. In our main repo, where the initial screenshot is from, we also added new code which we did not test, but none of it is detected as being new code.
One difference I can think of between these repos is that the main repo consists of multiple projects and test projects, and this second, newer, repo only has one project and one test project so far. For both of the projects we use Coverlet to measure the coverage and ReportGenerator to combine the reports into one. Could the multiple projects be the reason for this difference?