Hello @dgeissl
I split the topic according to the guidelines in our https://community.sonarsource.com/faq
Our static code analysis is done in two steps - most of the code is analyzed during the compilation done by msbuild. And the results are imported during the end
step. You can read more about this here.
In theory this could work, as long as the paths inside the code coverage reports are correct.
For example:
- on machine 1 - run the
begin
step, specifying the path where the code coverage reports are expected to be generated - on machine 1 - run the build (static code analysis is done here)
- in parallel , on machine 2, run the build w/o code analysis to generate the binaries and run the tests with code coverage enabled and generate ccov reports
- on machine 1, wait for the ccov analysis reports to be generated; download them locally in the path mentioned in step 1.
- on machine 1, run the
end
step.
However you need to ensure not to fall in any of the traps mentioned in our code coverage import troubleshooting guide: [Coverage] Troubleshooting guide for .NET code coverage import