Skip to content

Commit

Permalink
add coverage to Sonar
Browse files Browse the repository at this point in the history
  • Loading branch information
andrei-epure-sonarsource committed Aug 20, 2023
1 parent f4b1c21 commit 0a00bb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,6 @@ jobs:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
shell: powershell
run: |
.\.sonar\scanner\dotnet-sonarscanner begin /k:"andreiepure_eShopOnWeb" /o:"andrei-epure-personal" /d:sonar.token="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io"
.\.sonar\scanner\dotnet-sonarscanner begin /k:"andreiepure_eShopOnWeb" /o:"andrei-epure-personal" /d:sonar.token="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io" /d:sonar.cs.opencover.reportsPaths="**/coverage/coverage.xml"
dotnet test ./eShopOnWeb.sln --configuration Release -l trx /p:AltCover=true,AltCoverForce=true,AltCoverVisibleBranches=true,AltCoverAssemblyFilter='Moq|Humanizer|AltCover',AltCoverReport=./coverage/coverage.xml
.\.sonar\scanner\dotnet-sonarscanner end /d:sonar.token="${{ secrets.SONAR_TOKEN }}"

0 comments on commit 0a00bb9

Please sign in to comment.