Separating Code Analysis and Test Coverage

Hi! In order to reduce the build time of our solution we have separate builds for Code Quality and Test coverage. We even run our tests on multiple agents. Is it possible with SonarQube to send the analysis in two or more parts? Thanks!

Hi

The scanner for msbuild will send the results during the END step. There should be one END step per analysis.

Hi Andrei,

I’ve had some time to play around with my options. The conclusion I’ve come to is that if I send the results of an analysis without the test coverage, SonarQube will set code coverage to zero for that project. This means that I will always have to do a full analysis plus all the unit and integration tests to have a consistent result in SonarQube.

Let me know if I missed something.

Thanks,
Edouard

Yes, that’s correct, you need to always upload code coverage results.