Skip to content

Commit

Permalink
Fix test summary output of --report
Browse files Browse the repository at this point in the history
  • Loading branch information
Naktibalda committed May 24, 2022
1 parent f172098 commit f90c027
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions src/ResultPrinter/Report.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,18 +45,19 @@ public function endTest(\PHPUnit\Framework\Test $test, $time)

protected function endRun()
{
$this->write("\nCodeception Results\n");
$this->write(sprintf(
"Successful: %s. Failed: %s. Incomplete: %s. Skipped: %s",
$this->successful,
$this->failed,
$this->skipped,
$this->incomplete
) . "\n");
}

public function printResult(\PHPUnit\Framework\TestResult $result)
{
$this->write("\nCodeception Results\n");
$this->write(sprintf(
"Successful: %d. Failed: %d. Incomplete: %d. Skipped: %d. Useless: %d",
$this->successful,
$this->failed,
$this->incomplete,
$this->skipped,
$this->risky
) . "\n");
}

public function write($buffer)
Expand Down

0 comments on commit f90c027

Please sign in to comment.