Skip to content

Commit 0e01070

Browse files
committed
Change to pester 4 and fix capital casing for help folder
1 parent 79835cb commit 0e01070

File tree

1 file changed

+4
-14
lines changed

1 file changed

+4
-14
lines changed
Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,9 @@ jobs:
3131
- name: Install Pester
3232
shell: pwsh
3333
run: |
34-
if (-not (Get-Module -ListAvailable -Name Pester | Where-Object Version -ge '5.0.0')) {
35-
Install-Module -Name Pester -MinimumVersion 5.0.0 -Force -Scope CurrentUser -SkipPublisherCheck
36-
}
37-
Import-Module Pester -MinimumVersion 5.0.0 -Force
34+
Write-Verbose -Verbose "Installing Pester 4.x"
35+
Install-Module -Name Pester -MaximumVersion 4.99 -Force -Scope CurrentUser -SkipPublisherCheck
36+
Import-Module Pester -MaximumVersion 4.99 -Force
3837
3938
- name: Build Module
4039
shell: pwsh
@@ -44,16 +43,7 @@ jobs:
4443
- name: Run Pester Tests
4544
shell: pwsh
4645
run: |
47-
$config = New-PesterConfiguration
48-
$config.Run.Path = './test'
49-
$config.Run.Exit = $true
50-
$config.Output.Verbosity = 'Detailed'
51-
$config.CodeCoverage.Enabled = $false
52-
$config.TestResult.Enabled = $true
53-
$config.TestResult.OutputPath = 'testResults.xml'
54-
$config.TestResult.OutputFormat = 'NUnitXml'
55-
56-
Invoke-Pester -Configuration $config
46+
Invoke-Pester -Path './test' -OutputFile 'testResults.xml' -OutputFormat NUnitXml -EnableExit
5747
5848
- name: Upload Test Results
5949
if: always()

0 commit comments

Comments
 (0)