Code Coverage blank when using parallel job for Website and Test Project

If you use the same project, the results from the second job that finishes will overwrite the results from the first one.

Analysis won’t work without Prepare. Prepare sets up the system for the analysis.

Also, please read this post which explains that the analysis happens during VSBuild and during Analysis as well.


In order to run, I imagine Website.Test needs to first build Website, right?

If the answer is yes, why not have a single job for Website.Test which builds (and analyzes) the Website and Website.Test, runs the tests, creates the coverage file and pushes it to SonarCloud?

Like this, at least the Website job will be faster and will return the results faster during the PR analysis.