I am not able to scan code coverage into .net core project.
Pls find above image for setup cicd pls help me for scan code coverage.
also in local II had run below commands but not succeeded:
dotnet test --no-build “ASP.NETCore_Hospital.sln” --collect:“XPlat Code Coverage” – DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=opencover
dotnet test --no-build “ASP.NETCore_Hospital.sln” /p:CollectCoverage=true /p:CoverletOutputFormat=opencover
dotnet test “ASP.NETCore_Hospital.sln” /p:CollectCoverage=true /p:CoverletOutputFormat=opencover
sqa_60d480d28620dae6db5be9666bd0592997126da8
dotnet “D:\Software\sonar-scanner-msbuild-5.8.0.52797-net5.0\SonarScanner.MSBuild.dll” begin /k:Test /d:sonar.host.url=http://localhost:9000 /o:sonar.organization=“default” /d:sonar.cs.opencover.reportsPaths=ASP.NETCore_HospitalTest\TestResults\b5fd7c89-5abe-4bcf-a2e3-3301c20402f7\coverage.opencover.xml /d:sonar.login=“sqa_60d480d28620dae6db5be9666bd0592997126da8”
dotnet sonarscanner begin /k:“Test” /d:sonar.login=“sqa_60d480d28620dae6db5be9666bd0592997126da8” /d:sonar.cs.opencover.reportsPaths=coverage.xml
dotnet build --no-incremental coverlet “ASP.NETCore_HospitalTest\bin\Debug\net6.0\ASP.NETCore_Hospital.dll” --target “dotnet” --targetargs “test --no-build” -f=opencover -o=“coverage.xml” dotnet sonarscanner end /d:sonar.login=“sqa_60d480d28620dae6db5be9666bd0592997126da8”