Skip to content

Commit f550041

Browse files
authored
Update pester.ps1
1 parent c548608 commit f550041

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

PSModuleDevelopment/tests/pester.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ if ($Run -match "Everything|General")
3030
foreach ($file in (Get-ChildItem "$PSScriptRoot\general" -Filter $Filter))
3131
{
3232
Write-PSFMessage -Level Significant -Message " Executing <c='em'>$($file.Name)</c>"
33-
$results = Invoke-Pester -Script $file.FullName -Show $Show -PassThru
33+
$results = Invoke-Pester -Script $file.FullName -Show $Show -PassThru -OutputFile "TEST-$($file.BaseName).xml" -OutputFormat NUnitXml
3434
foreach ($result in $results)
3535
{
3636
$totalRun += $result.TotalCount
@@ -82,4 +82,4 @@ else { Write-PSFMessage -Level Critical -Message "<c='em'>$totalFailed tests</c>
8282
if ($totalFailed -gt 0)
8383
{
8484
throw "$totalFailed / $totalRun tests failed!"
85-
}
85+
}

0 commit comments

Comments
 (0)