mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 07:47:22 +01:00
chore(cleanup): Tidy-up and tweaks of Pest Parallel integration.
This commit is contained in:
File diff suppressed because one or more lines are too long
@ -54,15 +54,6 @@ $bootPest = (static function (): void {
|
||||
}
|
||||
}
|
||||
|
||||
require_once __DIR__.'/../overrides/Runner/TestSuiteLoader.php';
|
||||
require_once __DIR__.'/../overrides/Runner/Filter/NameFilterIterator.php';
|
||||
|
||||
/**
|
||||
* PHPUnit has no understanding of "todo" tests, so the ProgressPrinter will not show
|
||||
* TODO items by default. We use our own implementation here to add support for TODO.
|
||||
*/
|
||||
require_once __DIR__.'/../overrides/TextUI/Output/Default/ProgressPrinter/TestSkippedSubscriber.php';
|
||||
|
||||
assert(isset($getopt['status-file']) && is_string($getopt['status-file']));
|
||||
$statusFile = fopen($getopt['status-file'], 'wb');
|
||||
assert(is_resource($statusFile));
|
||||
|
||||
@ -19,7 +19,7 @@ use ReflectionClass;
|
||||
/**
|
||||
* @internal This class is not covered by the backward compatibility promise for PHPUnit
|
||||
*
|
||||
* This file is only overridden when using Pest Parallel. See /bin/worker.php for more information.
|
||||
* This file is overridden to allow Pest Parallel to show todo items in the progress output.
|
||||
*/
|
||||
final class TestSkippedSubscriber extends Subscriber implements SkippedSubscriber
|
||||
{
|
||||
|
||||
@ -6,6 +6,7 @@ namespace Pest\Bootstrappers;
|
||||
|
||||
use Pest\Contracts\Bootstrapper;
|
||||
use Pest\Exceptions\ShouldNotHappen;
|
||||
use Pest\Plugins\Parallel;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
@ -20,6 +21,7 @@ final class BootOverrides implements Bootstrapper
|
||||
private const FILES = [
|
||||
'Runner/Filter/NameFilterIterator.php',
|
||||
'Runner/TestSuiteLoader.php',
|
||||
'TextUI/Output/Default/ProgressPrinter/TestSkippedSubscriber.php',
|
||||
];
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user