From 0ebbaae7e4432c299e72b66cbc58dba9ae2faa8c Mon Sep 17 00:00:00 2001 From: Tim Meusel Date: Fri, 12 Sep 2025 16:55:09 +0200 Subject: [PATCH 1/2] CI: Add some powershell debugging options --- pwsh_module/command.tests.ps1 | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/pwsh_module/command.tests.ps1 b/pwsh_module/command.tests.ps1 index 07c242cf8..dc98d8b9a 100644 --- a/pwsh_module/command.tests.ps1 +++ b/pwsh_module/command.tests.ps1 @@ -71,9 +71,14 @@ Describe "test bolt command syntax" { } It "has correct number of parameters" { - ($command.Parameters.Values | Where-Object { - $_.name -notin $common - } | measure-object).Count | Should -Be 35 + $customParams = $command.Parameters.Values | Where-Object { + $_.Name -notin $common + } + + Write-Host "Custom parameters:" + $customParams | ForEach-Object { Write-Host " - $($_.Name)" } + + ($customParams | Measure-Object).Count | Should -Be 35 } } From 37bb1f3ef0aa0ad3776d1923d01950aaadad56e1 Mon Sep 17 00:00:00 2001 From: Sebastian Rakel Date: Fri, 12 Sep 2025 21:19:02 +0200 Subject: [PATCH 2/2] Ignore ProgressAction parameter --- pwsh_module/command.tests.ps1 | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/pwsh_module/command.tests.ps1 b/pwsh_module/command.tests.ps1 index dc98d8b9a..07c242cf8 100644 --- a/pwsh_module/command.tests.ps1 +++ b/pwsh_module/command.tests.ps1 @@ -71,14 +71,9 @@ Describe "test bolt command syntax" { } It "has correct number of parameters" { - $customParams = $command.Parameters.Values | Where-Object { - $_.Name -notin $common - } - - Write-Host "Custom parameters:" - $customParams | ForEach-Object { Write-Host " - $($_.Name)" } - - ($customParams | Measure-Object).Count | Should -Be 35 + ($command.Parameters.Values | Where-Object { + $_.name -notin $common + } | measure-object).Count | Should -Be 35 } }