mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 07:47:22 +01:00
fix: parallel status code
This commit is contained in:
@ -47,7 +47,6 @@ namespace PHPUnit\Runner\ResultCache;
|
||||
|
||||
use function array_keys;
|
||||
use function assert;
|
||||
use function Pest\version;
|
||||
use const DIRECTORY_SEPARATOR;
|
||||
use function dirname;
|
||||
use function file_get_contents;
|
||||
@ -57,6 +56,7 @@ use function is_dir;
|
||||
use function is_file;
|
||||
use function json_decode;
|
||||
use function json_encode;
|
||||
use function Pest\version;
|
||||
use PHPUnit\Framework\TestStatus\TestStatus;
|
||||
use PHPUnit\Runner\DirectoryCannotBeCreatedException;
|
||||
use PHPUnit\Runner\Exception;
|
||||
@ -190,6 +190,6 @@ final class DefaultResultCache implements ResultCache
|
||||
*/
|
||||
private function cacheVersion(): string
|
||||
{
|
||||
return 'pest_' . version();
|
||||
return 'pest_'.version();
|
||||
}
|
||||
}
|
||||
|
||||
@ -317,9 +317,7 @@ final class WrapperRunner implements RunnerInterface
|
||||
$testResultSum->testTriggeredPhpunitErrorEvents(),
|
||||
$testResultSum->testTriggeredPhpunitWarningEvents(),
|
||||
$testResultSum->testRunnerTriggeredDeprecationEvents(),
|
||||
array_values(array_filter($testResultSum->testRunnerTriggeredWarningEvents(), function ($event) {
|
||||
return ! str_contains($event->message(), 'No tests found');
|
||||
})),
|
||||
array_values(array_filter($testResultSum->testRunnerTriggeredWarningEvents(), fn ($event): bool => ! str_contains($event->message(), 'No tests found'))),
|
||||
);
|
||||
|
||||
$this->printer->printResults(
|
||||
|
||||
@ -917,4 +917,4 @@
|
||||
PASS Tests\Visual\Version
|
||||
✓ visual snapshot of help command output
|
||||
|
||||
Tests: 4 incomplete, 4 todos, 18 skipped, 634 passed (1559 assertions)
|
||||
Tests: 4 incomplete, 4 todos, 18 skipped, 634 passed (1560 assertions)
|
||||
@ -9,6 +9,8 @@ $run = function () {
|
||||
|
||||
$process->run();
|
||||
|
||||
expect($process->getExitCode())->toBe(0);
|
||||
|
||||
return preg_replace('#\\x1b[[][^A-Za-z]*[A-Za-z]#', '', $process->getOutput());
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user