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

Commit f90c027

Browse files
committed
Fix test summary output of --report
1 parent f172098 commit f90c027

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

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, $time)
4545

4646
protected function endRun()
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)
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->incomplete,
58+
$this->skipped,
59+
$this->risky
60+
) . "\n");
6061
}
6162

6263
public function write($buffer)

0 commit comments

Comments
 (0)