From bcab4224fb2ac6658e0945debf8a91778c00817e Mon Sep 17 00:00:00 2001 From: luke Date: Tue, 10 Aug 2021 14:24:34 +0100 Subject: [PATCH] Skips a test that doesn't support parallel. --- bin/pest | 2 -- .../SubFolder/SubFolder/UsesPerSubDirectory.php | 4 +++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/pest b/bin/pest index cc31653f..c18c3df9 100755 --- a/bin/pest +++ b/bin/pest @@ -4,10 +4,8 @@ use NunoMaduro\Collision\Provider; use ParaTest\Console\Commands\ParaTestCommand; use Pest\Actions\InteractsWithPlugins; -use Pest\Actions\LoadStructure; use Pest\Actions\ValidatesEnvironment; use Pest\Console\Command; -use Pest\Support\Arr; use Pest\Support\Container; use Pest\TestSuite; use Symfony\Component\Console\Input\ArgvInput; diff --git a/tests/PHPUnit/CustomTestCaseInSubFolders/SubFolder/SubFolder/UsesPerSubDirectory.php b/tests/PHPUnit/CustomTestCaseInSubFolders/SubFolder/SubFolder/UsesPerSubDirectory.php index 01bb8456..e98a09e7 100644 --- a/tests/PHPUnit/CustomTestCaseInSubFolders/SubFolder/SubFolder/UsesPerSubDirectory.php +++ b/tests/PHPUnit/CustomTestCaseInSubFolders/SubFolder/SubFolder/UsesPerSubDirectory.php @@ -1,5 +1,7 @@ assertCustomInSubFolderTrue(); -}); +})->skip(TestSuite::getInstance()->isInParallel, 'Nested Pest.php files are not loaded in parallel.');