Skip to content

Commit ae2041c

Browse files
🩹 [Patch]: Enhance logging for Invoke-ScriptAnalyzer to improve issue tracking
1 parent b11037f commit ae2041c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,10 @@ BeforeDiscovery {
6767

6868
Describe "PSScriptAnalyzer" {
6969
BeforeAll {
70-
$testResults = Invoke-ScriptAnalyzer -Path $Path -Settings $SettingsFilePath -Recurse -Verbose:$false
71-
Write-Warning "Found [$($testResults.Count)] issues"
70+
LogGroup "Invoke-ScriptAnalyzer -Path [$Path] -Settings [$relativeSettingsFilePath]" {
71+
$testResults = Invoke-ScriptAnalyzer -Path $Path -Settings $SettingsFilePath -Recurse -Verbose
72+
Write-Warning "Found [$($testResults.Count)] issues"
73+
}
7274
}
7375

7476
foreach ($Severety in $Severeties) {

0 commit comments

Comments
 (0)