Skip to content

PowerShell module with all kinds of miscellaneous goodies

License

Notifications You must be signed in to change notification settings

Marc013/Marc013Stuff

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Marc013Stuff

PowerShell module with all kinds of miscellaneous goodies

Functions

New-CodeCoverageReport

Use this function to create a code coverage report using Pester 5 and ReportGenerator.

After downloading the latest release of the ReportGenerator unzip the file. Depending on the version you downloaded you will get the following directory structure:

REPORTGENERATOR_5.0.4
├───net47
├───net5.0
├───net6.0
└───netcoreapp3.1

Create directory C:\ReportGenerator and copy the content of any of the netxx directory (depending on the .Net Runtime version you have on your system).

Add C:\ReportGenerator to environment variable Path.

Example report

Code coverage summary:

Screenshot showing coverage summary.

Code coverage details:

Screenshot showing coverage details.

Set-DirectoryStructure

This function creates or updates the directory structure specified in the JSON directory structure template file or object.

A template example is available here.

About

PowerShell module with all kinds of miscellaneous goodies

Resources

License

Stars

Watchers

Forks

Packages

No packages published