mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 07:47:22 +01:00
fix: --parallel exit code
This commit is contained in:
@ -296,6 +296,32 @@ final class WrapperRunner implements RunnerInterface
|
||||
);
|
||||
}
|
||||
|
||||
$testResultSum = new TestResult(
|
||||
$testResultSum->numberOfTests(),
|
||||
$testResultSum->numberOfTestsRun(),
|
||||
$testResultSum->numberOfAssertions(),
|
||||
$testResultSum->testErroredEvents(),
|
||||
$testResultSum->testFailedEvents(),
|
||||
$testResultSum->testConsideredRiskyEvents(),
|
||||
$testResultSum->testSuiteSkippedEvents(),
|
||||
$testResultSum->testSkippedEvents(),
|
||||
$testResultSum->testMarkedIncompleteEvents(),
|
||||
$testResultSum->testTriggeredDeprecationEvents(),
|
||||
$testResultSum->testTriggeredPhpDeprecationEvents(),
|
||||
$testResultSum->testTriggeredPhpunitDeprecationEvents(),
|
||||
$testResultSum->testTriggeredErrorEvents(),
|
||||
$testResultSum->testTriggeredNoticeEvents(),
|
||||
$testResultSum->testTriggeredPhpNoticeEvents(),
|
||||
$testResultSum->testTriggeredWarningEvents(),
|
||||
$testResultSum->testTriggeredPhpWarningEvents(),
|
||||
$testResultSum->testTriggeredPhpunitErrorEvents(),
|
||||
$testResultSum->testTriggeredPhpunitWarningEvents(),
|
||||
$testResultSum->testRunnerTriggeredDeprecationEvents(),
|
||||
array_values(array_filter($testResultSum->testRunnerTriggeredWarningEvents(), function ($event) {
|
||||
return ! str_contains($event->message(), 'No tests found');
|
||||
})),
|
||||
);
|
||||
|
||||
$this->printer->printResults(
|
||||
$testResultSum,
|
||||
$this->teamcityFiles,
|
||||
@ -305,7 +331,7 @@ final class WrapperRunner implements RunnerInterface
|
||||
$this->generateCodeCoverageReports();
|
||||
$this->generateLogs();
|
||||
|
||||
$exitcode = (new ShellExitCodeCalculator())->calculate(
|
||||
$exitCode = (new ShellExitCodeCalculator())->calculate(
|
||||
$this->options->configuration->failOnEmptyTestSuite(),
|
||||
$this->options->configuration->failOnRisky(),
|
||||
$this->options->configuration->failOnWarning(),
|
||||
@ -320,7 +346,7 @@ final class WrapperRunner implements RunnerInterface
|
||||
$this->clearFiles($this->teamcityFiles);
|
||||
$this->clearFiles($this->testdoxFiles);
|
||||
|
||||
return $exitcode;
|
||||
return $exitCode;
|
||||
}
|
||||
|
||||
private function generateCodeCoverageReports(): void
|
||||
|
||||
Reference in New Issue
Block a user