From c319a8e84cf6c76f2b5c5d8d5e22c73cf3f11609 Mon Sep 17 00:00:00 2001 From: Luke Downing Date: Fri, 10 Feb 2023 13:20:34 +0000 Subject: [PATCH] WIP --- src/Plugins/Parallel/Paratest/WrapperRunner.php | 6 ++++-- .../SubFolder/SubFolder/UsesPerSubDirectory.php | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/Plugins/Parallel/Paratest/WrapperRunner.php b/src/Plugins/Parallel/Paratest/WrapperRunner.php index 7424152e..13eb1737 100644 --- a/src/Plugins/Parallel/Paratest/WrapperRunner.php +++ b/src/Plugins/Parallel/Paratest/WrapperRunner.php @@ -369,12 +369,14 @@ final class WrapperRunner implements RunnerInterface { $this->debug(sprintf('Found %d test file%s', count($suiteLoader->files), count($suiteLoader->files) === 1 ? '' : 's')); - $tests = array_filter( + $phpunitTests = array_filter( $suiteLoader->files, fn (string $filename): bool => ! str_ends_with($filename, "eval()'d code") ); - return [...$tests, ...TestSuite::getInstance()->tests->getFilenames()]; + $pestTests = TestSuite::getInstance()->tests->getFilenames(); + + return [...$phpunitTests, ...$pestTests]; } private function debug(string $message): void diff --git a/tests/PHPUnit/CustomTestCaseInSubFolders/SubFolder/SubFolder/UsesPerSubDirectory.php b/tests/PHPUnit/CustomTestCaseInSubFolders/SubFolder/SubFolder/UsesPerSubDirectory.php index 01bb8456..3136a08b 100644 --- a/tests/PHPUnit/CustomTestCaseInSubFolders/SubFolder/SubFolder/UsesPerSubDirectory.php +++ b/tests/PHPUnit/CustomTestCaseInSubFolders/SubFolder/SubFolder/UsesPerSubDirectory.php @@ -2,4 +2,4 @@ test('closure was bound to CustomTestCase', function () { $this->assertCustomInSubFolderTrue(); -}); +})->only();