Skip to content

Commit b493239

Browse files
committed
Minor tweak to build and test files
1 parent d4ca4bb commit b493239

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22
[0-9]*/
33
obj/
44
Output/
5-
Tools/
5+
Tools/
6+
coverage.xml

build.ps1

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ param(
1313
[string]$SemVer
1414
)
1515
# Sanitize parameters to pass to Build-Module
16-
$null = $PSBoundParameters.Remove('Test')
1716
$ErrorActionPreference = "Stop"
1817
Push-Location $PSScriptRoot -StackName BuildBuildModule
1918

test.ps1

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,10 @@ Write-Host "Invoke-Pester for Module $($ModuleUnderTest) version $($ModuleUnderT
3333

3434
if (-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
}

0 commit comments

Comments
 (0)