File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 2
2
[0-9 ]* /
3
3
obj /
4
4
Output /
5
- Tools /
5
+ Tools /
6
+ coverage.xml
Original file line number Diff line number Diff line change 13
13
[string ]$SemVer
14
14
)
15
15
# Sanitize parameters to pass to Build-Module
16
- $null = $PSBoundParameters.Remove (' Test' )
17
16
$ErrorActionPreference = " Stop"
18
17
Push-Location $PSScriptRoot - StackName BuildBuildModule
19
18
Original file line number Diff line number Diff line change @@ -33,7 +33,10 @@ Write-Host "Invoke-Pester for Module $($ModuleUnderTest) version $($ModuleUnderT
33
33
34
34
if (-not $SkipCodeCoverage ) {
35
35
# Get code coverage for the psm1 file to a coverage.xml that we can mess with later
36
- Invoke-Pester ./ Tests - CodeCoverage $ModuleUnderTest.Path - CodeCoverageOutputFile ./ coverage.xml - Show $Show - PesterOption @ { IncludeVSCodeMarker = $IncludeVSCodeMarker }
36
+ Invoke-Pester ./ Tests - Show $Show - PesterOption @ {
37
+ IncludeVSCodeMarker = $IncludeVSCodeMarker
38
+ } - CodeCoverage $ModuleUnderTest.Path - CodeCoverageOutputFile ./ coverage.xml - PassThru |
39
+ Convert-CodeCoverage - SourceRoot ./ Source - Relative
37
40
} else {
38
41
Invoke-Pester ./ Tests - Show $Show - PesterOption @ { IncludeVSCodeMarker = $IncludeVSCodeMarker }
39
42
}
You can’t perform that action at this time.
0 commit comments