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 array_keys;
|
||||||
use function assert;
|
use function assert;
|
||||||
use function Pest\version;
|
|
||||||
use const DIRECTORY_SEPARATOR;
|
use const DIRECTORY_SEPARATOR;
|
||||||
use function dirname;
|
use function dirname;
|
||||||
use function file_get_contents;
|
use function file_get_contents;
|
||||||
@ -57,6 +56,7 @@ use function is_dir;
|
|||||||
use function is_file;
|
use function is_file;
|
||||||
use function json_decode;
|
use function json_decode;
|
||||||
use function json_encode;
|
use function json_encode;
|
||||||
|
use function Pest\version;
|
||||||
use PHPUnit\Framework\TestStatus\TestStatus;
|
use PHPUnit\Framework\TestStatus\TestStatus;
|
||||||
use PHPUnit\Runner\DirectoryCannotBeCreatedException;
|
use PHPUnit\Runner\DirectoryCannotBeCreatedException;
|
||||||
use PHPUnit\Runner\Exception;
|
use PHPUnit\Runner\Exception;
|
||||||
|
|||||||
@ -317,9 +317,7 @@ final class WrapperRunner implements RunnerInterface
|
|||||||
$testResultSum->testTriggeredPhpunitErrorEvents(),
|
$testResultSum->testTriggeredPhpunitErrorEvents(),
|
||||||
$testResultSum->testTriggeredPhpunitWarningEvents(),
|
$testResultSum->testTriggeredPhpunitWarningEvents(),
|
||||||
$testResultSum->testRunnerTriggeredDeprecationEvents(),
|
$testResultSum->testRunnerTriggeredDeprecationEvents(),
|
||||||
array_values(array_filter($testResultSum->testRunnerTriggeredWarningEvents(), function ($event) {
|
array_values(array_filter($testResultSum->testRunnerTriggeredWarningEvents(), fn ($event): bool => ! str_contains($event->message(), 'No tests found'))),
|
||||||
return ! str_contains($event->message(), 'No tests found');
|
|
||||||
})),
|
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->printer->printResults(
|
$this->printer->printResults(
|
||||||
|
|||||||
@ -917,4 +917,4 @@
|
|||||||
PASS Tests\Visual\Version
|
PASS Tests\Visual\Version
|
||||||
✓ visual snapshot of help command output
|
✓ 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();
|
$process->run();
|
||||||
|
|
||||||
|
expect($process->getExitCode())->toBe(0);
|
||||||
|
|
||||||
return preg_replace('#\\x1b[[][^A-Za-z]*[A-Za-z]#', '', $process->getOutput());
|
return preg_replace('#\\x1b[[][^A-Za-z]*[A-Za-z]#', '', $process->getOutput());
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user