Skip to content

Commit 25548db

Browse files
davidmatsonnohwndfflaten
authored
Fix ShowNavigationMarkers with ShowStartMarkers. (#2624)
* Fix ShowNavigationMarkers with ShowStartMarkers. * Update src/functions/Output.ps1 --------- Co-authored-by: Jakub Jareš <[email protected]> Co-authored-by: Frode Flaten <[email protected]>
1 parent 30c4126 commit 25548db

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/functions/Output.ps1

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -620,7 +620,13 @@ function Get-WriteScreenPlugin ($Verbosity) {
620620
if ($PesterPreference.Debug.ShowStartMarkers.Value) {
621621
$level = $_test.Path.Count
622622
$margin = $ReportStrings.Margin * ($level)
623-
Write-PesterHostMessage -ForegroundColor $ReportTheme.Information "$margin[|] $($_test.ExpandedName)..."
623+
$out = "$($_test.ExpandedName)..."
624+
625+
if ($PesterPreference.Debug.ShowNavigationMarkers.Value) {
626+
$out += ", $($_test.ScriptBlock.File):$($_test.StartLine)"
627+
}
628+
629+
Write-PesterHostMessage -ForegroundColor $ReportTheme.Information "$margin[|] $out"
624630
}
625631
}
626632
}

0 commit comments

Comments
 (0)