File tree Expand file tree Collapse file tree 1 file changed +4
-14
lines changed
Expand file tree Collapse file tree 1 file changed +4
-14
lines changed Original file line number Diff line number Diff line change 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
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()
You can’t perform that action at this time.
0 commit comments