Measuring .NET Core Test Coverage with Coverlet

Peter Marshall · January 8, 2020

Measuring .NET Core Test Coverage with Coverlet

dotnet test /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura /p:Exclude="[xunit*]\*" /p:CoverletOutput="./TestResults/"

dotnet reportgenerator "-reports:TestResults\coverage.cobertura.xml" "-targetdir:TestResults\html" -reporttypes:HTML;

Twitter, Facebook