File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,8 +11,25 @@ Write-Host "TEST: Pester Version: $PesterVersion"
1111Write-Host $Lines
1212
1313try {
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}
1734finally {
1835 $Timestamp = Get-Date - Format " yyyyMMdd-hhmmss"
You can’t perform that action at this time.
0 commit comments