diff --git a/src/Plugins/Only.php b/src/Plugins/Only.php index 503f8ed0..0d958173 100644 --- a/src/Plugins/Only.php +++ b/src/Plugins/Only.php @@ -44,12 +44,12 @@ final class Only implements Terminable */ public static function enable(TestCall $testCall, string $group = '__pest_only'): void { + $testCall->group($group); + if (Environment::name() === Environment::CI || Parallel::isWorker()) { return; } - $testCall->group($group); - $lockFile = self::TEMPORARY_FOLDER.DIRECTORY_SEPARATOR.'only.lock'; if (file_exists($lockFile) && $group === '__pest_only') {