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 38d7b48
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions Build/Invoke-ModuleTests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,21 @@ 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 -Path "$env:PROJECTROOT/PSKoans"
}
TestResult = @{
Enabled = $true
TestSuiteName = "PSKoans-Pester"
}
}
}
finally {
$Timestamp = Get-Date -Format "yyyyMMdd-hhmmss"
Expand Down

0 comments on commit 38d7b48

Please sign in to comment.