File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ function GetRelativePath {
4
4
Returns the relative path, or $Path if the paths don't share the same root.
5
5
For backward compatibility, this is [System.IO.Path]::GetRelativePath for .NET 4.x
6
6
#>
7
+ [OutputType ([string ])]
7
8
[CmdletBinding ()]
8
9
param (
9
10
# The source path the result should be relative to. This path is always considered to be a directory.
Original file line number Diff line number Diff line change 1
1
# requires -Module PowerShellGet , Pester
2
2
using namespace Microsoft.PackageManagement.Provider.Utility
3
3
param (
4
+ [switch ]$SkipScriptAnalyzer ,
4
5
[switch ]$SkipCodeCoverage ,
5
6
[switch ]$HideSuccess ,
6
7
[switch ]$IncludeVSCodeMarker
@@ -41,6 +42,10 @@ if (-not $SkipCodeCoverage) {
41
42
Invoke-Pester ./ Tests - Show $Show - PesterOption @ { IncludeVSCodeMarker = $IncludeVSCodeMarker }
42
43
}
43
44
45
+ Write-Host
46
+ if (-not $SkipScriptAnalyzer ) {
47
+ Invoke-ScriptAnalyzer $ModuleUnderTest.Path
48
+ }
44
49
Pop-Location
45
50
46
51
# Re-enable default parameters after testing
You can’t perform that action at this time.
0 commit comments