Skip to content

Power shell script for generating code coverage report with dotnet-reportgenerator

Notifications You must be signed in to change notification settings

viniciobs/code.coverage.report-PS-script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

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"

Releases

No releases published

Packages

No packages published