chore(cleanup): Tidy-up and tweaks of Pest Parallel integration.

This commit is contained in:
Luke Downing
2023-02-13 11:13:17 +00:00
parent 5ca4c5bca9
commit 69afb31bb9
6 changed files with 54 additions and 6 deletions

View File

@ -45,9 +45,6 @@ $bootPest = (static function (): void {
'phpunit-argv:',
]);
require_once __DIR__.'/../overrides/Runner/TestSuiteLoader.php';
require_once __DIR__.'/../overrides/Runner/Filter/NameFilterIterator.php';
$composerAutoloadFiles = [
dirname(__DIR__, 3).DIRECTORY_SEPARATOR.'autoload.php',
dirname(__DIR__, 2).DIRECTORY_SEPARATOR.'vendor'.DIRECTORY_SEPARATOR.'autoload.php',
@ -63,6 +60,15 @@ $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));