Skip to content

Latest commit

 

History

History
15 lines (11 loc) · 865 Bytes

File metadata and controls

15 lines (11 loc) · 865 Bytes

Code Coverage Report Generator

This is a PowerShell script for generating code coverage report with dotnet-reportgenerator.

How to run

  1. Open a PowerShell
  2. Type ./report-generator.ps1

It accepts two optional args:

  1. outputdir: Defines the output directory where the results will be placed at. The default is ./testresults
  2. excludeassemblies: Defines assemblies which will be excluded from code coverage. To specify more than one assembly, separate them by semicolon

Example

For this project there some projects that does not need to be tested (in the project owner opinion), they are Infra and Ioc. In this case the script should look like

./report-generator.ps1 -excludeassemblies:"Infra;Ioc"