I am using SonarCloud for a .NET Core 3.1 application to collect as much information of the CI system (Azure Pipelines) as I can. So far so good; I have been able to include code coverage of my main source project, as well as the test results (in .trx format).
Now I am wondering if I can include code coverage results of the test projects themselves (i.e. not just the code they are calling, which is already working fine). I believe this information should already be in the coverage report being uploaded but, for some reason, it is not appearing in my project page.
Is there any setting that I need to change for this information to appear?
A few more details:
- Project repository: GitHub - fernandreu/office-ribbonx-editor: An overhauled fork of the original Custom UI Editor for Microsoft Office, built with WPF
- The main source project is in
src/OfficeRibbonXEditor - The test projects are in
tests/*Tests
- The main source project is in
- SonarCloud page of the project: https://sonarcloud.io/dashboard?id=fernandreu_office-ribbonx-editor
- CI build of the project (the .Net Core job): https://dev.azure.com/fernandreu-public/OfficeRibbonXEditor/_build/latest?definitionId=1&branchName=master
- Coverage results for a recent build as shown in Azure Pipelines is here. You can see this includes the test projects
- I am using the standard Azure Pipelines tasks for setting up the SonarCloud analysis, with just a few extra settings to pass the paths to the test / coverage results files
Thanks!
Fernando