Skip to content

Commit

Permalink
✅ update code coverage config
Browse files Browse the repository at this point in the history
  • Loading branch information
vexx32 committed Jul 10, 2020
1 parent 94c9ee8 commit 6374cfc
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions Build/Invoke-ModuleTests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,25 @@ Write-Host "TEST: Pester Version: $PesterVersion"
Write-Host $Lines

try {
# Try/Finally required since -CI will exit with exit code on failure.
Invoke-Pester -Path "$env:PROJECTROOT" -CI -Output Normal
# Try/Finally required since we will exit with exit code on failure.
Invoke-Pester -Configuration @{
Run = @{
Path = "$env:PROJECTROOT/Tests"
Exit = $true
}
CodeCoverage = @{
Enabled = $true
Path = Get-ChildItem -Recurse -Include '*.ps1' -Path @(
"$env:PROJECTROOT/PSKoans/PSKoans.psm1"
"$env:PROJECTROOT/PSKoans/Public"
"$env:PROJECTROOT/PSKoans/Private"
)
}
TestResult = @{
Enabled = $true
TestSuiteName = "PSKoans-Pester"
}
}
}
finally {
$Timestamp = Get-Date -Format "yyyyMMdd-hhmmss"
Expand Down

0 comments on commit 6374cfc

Please sign in to comment.