Skip to content

Commit 6374cfc

Browse files
committed
✅ update code coverage config
1 parent 94c9ee8 commit 6374cfc

1 file changed

Lines changed: 19 additions & 2 deletions

File tree

Build/Invoke-ModuleTests.ps1

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,25 @@ Write-Host "TEST: Pester Version: $PesterVersion"
1111
Write-Host $Lines
1212

1313
try {
14-
# Try/Finally required since -CI will exit with exit code on failure.
15-
Invoke-Pester -Path "$env:PROJECTROOT" -CI -Output Normal
14+
# Try/Finally required since we will exit with exit code on failure.
15+
Invoke-Pester -Configuration @{
16+
Run = @{
17+
Path = "$env:PROJECTROOT/Tests"
18+
Exit = $true
19+
}
20+
CodeCoverage = @{
21+
Enabled = $true
22+
Path = Get-ChildItem -Recurse -Include '*.ps1' -Path @(
23+
"$env:PROJECTROOT/PSKoans/PSKoans.psm1"
24+
"$env:PROJECTROOT/PSKoans/Public"
25+
"$env:PROJECTROOT/PSKoans/Private"
26+
)
27+
}
28+
TestResult = @{
29+
Enabled = $true
30+
TestSuiteName = "PSKoans-Pester"
31+
}
32+
}
1633
}
1734
finally {
1835
$Timestamp = Get-Date -Format "yyyyMMdd-hhmmss"

0 commit comments

Comments
 (0)