Hey yall, I’m having a bit of a problem with my sonarcloud branch analysis.
Quick summary: I have a C# project which i am analyzing using ci/cd analysis in a github actions pipeline using dotnet-coverage. Problem is, the coverage shows fine, everything is ok but the number of unit tests is missing (I am aware that the exact tests run will not show, but i am interested in the number of unit tests).
The commands that i run in my pipeline are the following:
dotnet-sonarscanner begin /k:"${{ secrets.SONAR_PROJECT }}" /o:"${{ secrets.SONAR_ORG }}" /d:sonar.login="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io" /d:sonar.cs.vscoveragexml.reportsPaths=coverage.xml
dotnet build
dotnet-coverage collect 'dotnet test' -f xml -o 'coverage.xml'
dotnet-sonarscanner end /d:sonar.login="${{ secrets.SONAR_TOKEN }}"
Is this a limitation of dotnet-coverage and i should try some other tool?
Thanks!