Skip to content

Commit 29eac9c

Browse files
🩹 [Patch]: Update test results output formatting in PSScriptAnalyzer tests for enhanced verbosity and clarity
1 parent 68e9176 commit 29eac9c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

‎scripts/tests/PSScriptAnalyzer/PSScriptAnalyzer.Tests.ps1‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,11 @@ Describe 'PSScriptAnalyzer' {
8282
$testResults = Invoke-ScriptAnalyzer -Path $Path -Settings $SettingsFilePath -Recurse -Verbose
8383
}
8484
LogGroup "TestResults [$($testResults.Count)]" {
85-
$testResults | Format-Table -AutoSize
85+
$testResults | ForEach-Object {
86+
$_ | Format-List | Out-String -Stream | ForEach-Object {
87+
Write-Verbose $_ -Verbose
88+
}
89+
}
8690
}
8791
}
8892

0 commit comments

Comments
 (0)