Skip to content

Script Tests

Andrew Davidson edited this page Dec 20, 2020 · 6 revisions

Script Tests

check script has valid PowerShell syntax check help must contain required elements check help must not contain unspecified elements check help elements text is not empty check help elements Min/Max counts are valid check script contains [CmdletBinding] attribute check script contains [OutputType] attribute check script [OutputType] attribute is not empty check script contains param attribute check script param block variables have type check .PARAMETER help matches variables in param block check script contains no PSScriptAnalyzer suppressions check script contains no PSScriptAnalyser SonarQube rule failures check Import-Module statements have valid format

Clone this wiki locally