This is a PowerShell script for generating code coverage report with dotnet-reportgenerator.
- Open a PowerShell
- Type
./report-generator.ps1
It accepts two optional args:
- outputdir: Defines the output directory where the results will be placed at. The default is
./testresults
- excludeassemblies: Defines assemblies which will be excluded from code coverage. To specify more than one assembly, separate them by semicolon
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"