Hello,
Sonarcloud is not detecting our coverage reports for sometime now. I’ve run into this issue where it says sonar-dotnet is switching to altcover? Would switching to altcover in our environment make our coverage processed by sonarcloud?
ALM used: Github
CI system used: Github Actions (runs-on: windows-latest)
Scanner command used: dotnet test test/PanjurUserApi.Tests.Application --settings test/PanjurUserApi.Tests.Application/coverlet.runsettings --configuration Release --verbosity normal -r=TestResults --logger trx /p:CollectCoverage=true /p:CoverletOutputFormat=opencover
Okay we solved this issue. The issue was with dotnet 7 “-r” is not used for results directory anymore. The new argument is : --results-directory
Since we were using github action yaml with “latest” windows argument, our github action switched to a windows version with dotnet 7.
If anyone else has this problem there are two things you need to do.
Setup a global.json in your .net repo to specify which dotnet version you want your project to be compiled with.
Also, in your github action you will need to get that specific dotnet version: