Skip to content
Merged
Show file tree
Hide file tree
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
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,12 @@ After running your tests, you'll see a summary report at the end showing the slo
- **Red**: Tests that exceed the danger threshold (default: 5 seconds)
- **Normal**: Tests below the warning threshold

```
```text
Top 10 slowest tests:

1. MyTest::testSlowOperation : 1234.56 ms (1.235 s) [colored red]
2. AnotherTest::testComplexCalculation : 987.65 ms (0.988 s) [colored yellow]
3. DatabaseTest::testLargeQuery : 654.32 ms (0.654 s) [colored yellow]
1. ⏱ 1234.56 ms (1.235 s) MyTest::testSlowOperation [colored red]
2. 987.65 ms (0.988 s) AnotherTest::testComplexCalculation [colored yellow]
3. ⏱ 654.32 ms (0.654 s) DatabaseTest::testLargeQuery [colored yellow]
...
```

Expand Down
4 changes: 1 addition & 3 deletions src/ExecutionTimingExtension/ExecutionTimeReportPrinter.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ public function print(): void

$this->printHeader(count($topTests));
$this->printTestLines($topTests);

echo PHP_EOL;
}

private function shouldPrint(): bool
Expand Down Expand Up @@ -142,7 +140,7 @@ private function printTestLine(array $test, int $rank, array $columnWidths): voi
$timeSecDisplay = $color !== '' ? Color::colorize($color, $timeSecFormatted) : $timeSecFormatted;

printf(
" %s. ⏱ %s %s %s" . PHP_EOL,
" %s. ⏱ %s %s %s" . PHP_EOL,
$rankFormatted,
$timeMsDisplay,
$timeSecDisplay,
Expand Down