File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22[0-9 ]* /
33obj /
44Output /
5- Tools /
5+ Tools /
6+ coverage.xml
Original file line number Diff line number Diff line change 1313 [string ]$SemVer
1414)
1515# Sanitize parameters to pass to Build-Module
16- $null = $PSBoundParameters.Remove (' Test' )
1716$ErrorActionPreference = " Stop"
1817Push-Location $PSScriptRoot - StackName BuildBuildModule
1918
Original file line number Diff line number Diff line change @@ -33,7 +33,10 @@ Write-Host "Invoke-Pester for Module $($ModuleUnderTest) version $($ModuleUnderT
3333
3434if (-not $SkipCodeCoverage ) {
3535 # 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
3740} else {
3841 Invoke-Pester ./ Tests - Show $Show - PesterOption @ { IncludeVSCodeMarker = $IncludeVSCodeMarker }
3942}
You can’t perform that action at this time.
0 commit comments