From 2e73e4748b462555e038681addf76b90bf755efa Mon Sep 17 00:00:00 2001 From: Christian Sandfeld Date: Thu, 2 Nov 2023 14:13:11 +0000 Subject: [PATCH] Adds skippedMessage to output also when ErrorId is PesterTestInconclusive or PesterTestPending --- src/functions/Output.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/functions/Output.ps1 b/src/functions/Output.ps1 index ccdd8ac9b..264d5ea0b 100644 --- a/src/functions/Output.ps1 +++ b/src/functions/Output.ps1 @@ -753,7 +753,7 @@ function Get-WriteScreenPlugin ($Verbosity) { $margin = $ReportStrings.Margin * ($level) $error_margin = $margin + $ReportStrings.Margin $out = $_test.ExpandedName - if (-not $_test.Skip -and $_test.ErrorRecord.FullyQualifiedErrorId -eq 'PesterTestSkipped') { + if (-not $_test.Skip -and @('PesterTestSkipped', 'PesterTestInconclusive', 'PesterTestPending') -contains $Result.ErrorRecord.FullyQualifiedErrorId) { $skippedMessage = [String]$_Test.ErrorRecord [String]$out += " $skippedMessage" }