diff --git a/src/functions/Output.ps1 b/src/functions/Output.ps1 index 2b0d02fdf..cee3ba4d8 100644 --- a/src/functions/Output.ps1 +++ b/src/functions/Output.ps1 @@ -620,7 +620,13 @@ function Get-WriteScreenPlugin ($Verbosity) { if ($PesterPreference.Debug.ShowStartMarkers.Value) { $level = $_test.Path.Count $margin = $ReportStrings.Margin * ($level) - Write-PesterHostMessage -ForegroundColor $ReportTheme.Information "$margin[|] $($_test.ExpandedName)..." + $out = "$($_test.ExpandedName)..." + + if ($PesterPreference.Debug.ShowNavigationMarkers.Value) { + $out += ", $($_test.ScriptBlock.File):$($_test.StartLine)" + } + + Write-PesterHostMessage -ForegroundColor $ReportTheme.Information "$margin[|] $out" } } }