Must-share information (formatted with Markdown):
-
which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
Sonarqube Community Edition v10.6 (92116) -
how is SonarQube deployed: zip, Docker, Helm
zip in Windows 10 -
what are you trying to achieve
See “Sucess” in Measure/Coverage/Tests, like img below, but for .net/csharp:
-
what have you tried so far to achieve this
I tried several scripts like:
set SONAR_PROJECT_KEY=api_csharp
set SONAR_HOST_URL=http://localhost:9000
REM SONAR 10.6 community
set SONAR_TOKEN=sqp_cb8264b9693aaf51c2ca78cae9773752e913248e
dotnet sonarscanner begin ^
/k:"%SONAR_PROJECT_KEY%" ^
/d:sonar.host.url="%SONAR_HOST_URL%" ^
/d:sonar.projectBaseDir="%WORK_DIR%" ^
/d:sonar.cs.opencover.reportsPaths="TestResults/**/coverage.opencover.xml" ^
/d:sonar.cs.vstest.reportsPaths="TestResults/TestResults.trx" ^
/d:sonar.verbose=true ^
/v:"5.0" ^
/d:sonar.token="%SONAR_TOKEN%"
dotnet build --no-incremental
dotnet test "Calculadora.Tests.csproj" --logger:"trx;LogFileName=TestResults.trx" ^
--collect:"XPlat Code Coverage;Format=opencover" ^
--results-directory ./TestResults
dotnet sonarscanner end /d:sonar.token="%SONAR_TOKEN%"
But the “Success” doesn´t appear:
Follow a simple project that I used for test
coverage_test_success_not_show.zip (4.9 MB)
Any help is very welcome!!!