Skip to content

Instantly share code, notes, and snippets.

@tomaszprasolek
Last active October 10, 2023 12:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tomaszprasolek/bfd4db8d30cc6f93e9285c0b117b10f7 to your computer and use it in GitHub Desktop.
Save tomaszprasolek/bfd4db8d30cc6f93e9285c0b117b10f7 to your computer and use it in GitHub Desktop.
Local code coverage report
-- 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