Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add count #2458

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
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
@@ -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
@@ -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)"