Skip to content
Snippets Groups Projects
Commit 83a84f3e authored by kon0379's avatar kon0379
Browse files

feat: Add dotnet test coverage and sonarqube test coverage xml path

parent 37a82f8b
1 merge request!15merge: develop into main
Pipeline #856 passed with warnings with stages
in 4 minutes and 19 seconds
......@@ -104,9 +104,9 @@ sonarqube-check:
paths:
- .sonar/cache
script:
- "dotnet sonarscanner begin /k:\"kon0379DiplomaThesis\" /d:sonar.token=\"$SONAR_TOKEN\" /d:\"sonar.host.url=$SONAR_HOST_URL\" "
- "dotnet sonarscanner begin /k:\"kon0379DiplomaThesis\" /d:sonar.token=\"$SONAR_TOKEN\" /d:\"sonar.host.url=$SONAR_HOST_URL\" /d:sonar.cs.opencover.reportsPaths=\"**/TestResults/*/*.xml\""
- "sudo dotnet build"
- "dotnet-coverage collect 'dotnet test' -f xml -o 'coverage.xml'"
- "dotnet test --no-build --collect:\"XPlat Code Coverage\""
- "dotnet sonarscanner end /d:sonar.token=\"$SONAR_TOKEN\""
allow_failure: true
only:
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment