Skip to content

Commit

Permalink
Adds skippedMessage to output also when ErrorId is PesterTestInconclu…
Browse files Browse the repository at this point in the history
…sive or PesterTestPending
  • Loading branch information
csandfeld committed Nov 2, 2023
1 parent 4f64e0f commit 2e73e47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/functions/Output.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down

0 comments on commit 2e73e47

Please sign in to comment.