Skip to content
This repository was archived by the owner on Mar 12, 2025. It is now read-only.

Commit 8e8d942

Browse files
committed
Fix test summary output of --report
1 parent 01dc510 commit 8e8d942

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

Diff for: src/ResultPrinter/Report.php

+9-8
Original file line numberDiff line numberDiff line change
@@ -45,18 +45,19 @@ public function endTest(\PHPUnit\Framework\Test $test, float $time) : void
4545

4646
protected function endRun() : void
4747
{
48-
$this->write("\nCodeception Results\n");
49-
$this->write(sprintf(
50-
"Successful: %s. Failed: %s. Incomplete: %s. Skipped: %s",
51-
$this->successful,
52-
$this->failed,
53-
$this->skipped,
54-
$this->incomplete
55-
) . "\n");
5648
}
5749

5850
public function printResult(\PHPUnit\Framework\TestResult $result): void
5951
{
52+
$this->write("\nCodeception Results\n");
53+
$this->write(sprintf(
54+
"Successful: %d. Failed: %d. Incomplete: %d. Skipped: %d. Useless: %d",
55+
$this->successful,
56+
$this->failed,
57+
$this->skipped,
58+
$this->incomplete,
59+
$this->risky,
60+
) . "\n");
6061
}
6162

6263
public function write(string $buffer) : void

0 commit comments

Comments
 (0)