Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/functions/Output.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -670,11 +670,11 @@ function Get-WriteScreenPlugin ($Verbosity) {
}

if ('Normal' -eq $PesterPreference.Output.Verbosity.Value) {
$humanTime = "$(Get-HumanTime ($Context.Result.Duration)) ($(Get-HumanTime $Context.Result.UserDuration)|$(Get-HumanTime $Context.Result.FrameworkDuration))"
$humanTime = Get-HumanTime $Context.Result.Duration

if ($Context.Result.Passed) {
Write-PesterHostMessage -ForegroundColor $ReportTheme.Pass "[+] $($Context.Result.Item)" -NoNewLine
Write-PesterHostMessage -ForegroundColor $ReportTheme.PassTime " $humanTime"
Write-PesterHostMessage -ForegroundColor $ReportTheme.PassTime " $(if (1 -eq $Context.Result.PassedCount) { "1 test" } else { "$($Context.Result.PassedCount) tests" }) in $humanTime "
}

# this won't work skipping the whole file when all it's tests are skipped is not a feature yet in 5.0.0
Expand Down Expand Up @@ -728,7 +728,7 @@ function Get-WriteScreenPlugin ($Verbosity) {
throw "Unsupported level of output '$($PesterPreference.Output.Verbosity.Value)'"
}

$humanTime = "$(Get-HumanTime ($_test.Duration)) ($(Get-HumanTime $_test.UserDuration)|$(Get-HumanTime $_test.FrameworkDuration))"
$humanTime = Get-HumanTime $_test.Duration
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also affects Detailed++. Intentional?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

intentional, but will revert.


if ($PesterPreference.Debug.ShowNavigationMarkers.Value) {
$out += ", $($_test.ScriptBlock.File):$($_Test.StartLine)"
Expand Down