diff --git a/Functions/Output.ps1 b/Functions/Output.ps1 index e0a3e4d6c..7f4feb6c2 100644 --- a/Functions/Output.ps1 +++ b/Functions/Output.ps1 @@ -65,7 +65,11 @@ function Write-PesterStart { $OFS = $ReportStrings.MessageOfs - $message = $ReportStrings.StartMessage -f "$($Path)" + if ($Path.Path) { + $message = $ReportStrings.StartMessage -f "$($Path.Path -join ', ')" + } else { + $message = $ReportStrings.StartMessage -f "$($Path -join ', ')" + } if ($PesterState.TestNameFilter) { $message += $ReportStrings.FilterMessage -f "$($PesterState.TestNameFilter)" }