Use the command line to generate the report tests
1 - Run SonarQube in Docker
docker run -d โ name sonarqube -p 9000:9000 -p 9092:9092 sonarqube
2 - Run test
dotnet test tests/Math.Test/Math.Test.csproj /p:CollectCoverage=true /p:CoverletOutputFormat=opencover
3 - Stop dotnet build-server
dotnet build-server shutdown
4 - Start sonarscanner
dotnet sonarscanner begin /k:Math /d:sonar.host.url=http://localhost:9000 /d:sonar.cs.opencover.reportsPaths="tests/Math.Test/coverage.opencover.xml" /d:sonar.coverage.exclusions="**Test*.cs"
5 - Project compilation
dotnet build
6 - Stop sonarscanner
dotnet sonarscanner end