Skip to content

Commit

Permalink
chore: Enable NUnitXml output in Pester configuration
Browse files Browse the repository at this point in the history
Enable the NUnitXml output in the Pester configuration for better compatibility with Pester 5.6.1 and other dependencies.
  • Loading branch information
vicperdana committed Aug 21, 2024
1 parent f362bb8 commit 11579bc
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pipeline.build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,11 @@ task TestModule Dependencies, {
# Define Pester configuration
$pesterConfig = [PesterConfiguration]::Default
$pesterConfig.Run.PassThru = $True
$pesterConfig.Outputs.NUnitXml.Enabled = $True
$pesterConfig.Outputs.NUnitXml.Path = 'reports/pester-unit.xml'
# Enable NUnitXml output
$pesterConfig.Output.Verbosity = 'Detailed'
$pesterConfig.Output.Add('NUnitXml', @{
Path = 'reports/pester-unit.xml'
})

if ($CodeCoverage) {
$pesterConfig.CodeCoverage.OutputFormat = 'JaCoCo'
Expand Down

0 comments on commit 11579bc

Please sign in to comment.