This commit is contained in:
Nuno Maduro
2024-09-05 21:56:48 +01:00
parent bf9d011045
commit 526af2a75e

View File

@ -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') {