Last active
October 10, 2023 12:41
-
-
Save tomaszprasolek/bfd4db8d30cc6f93e9285c0b117b10f7 to your computer and use it in GitHub Desktop.
Local code coverage report
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- xUnit | |
dotnet test /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura | |
reportgenerator -reports:"coverage.cobertura.xml" -targetdir:"coveragereport" -reporttypes:Html | |
-- nUnit | |
dotnet test --collect:"XPlat Code Coverage" | |
reportgenerator -reports:".\TestResults\6531b870-6841-41a7-96fb-534c49347eca\coverage.cobertura.xml" -targetdir:"coveragereport" -reporttypes:Html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment