From 2b5d9431164f02ec47e0840291cf1bd0adf66987 Mon Sep 17 00:00:00 2001 From: lubiana Date: Sun, 2 Feb 2025 21:01:45 +0100 Subject: [PATCH] enable parallel testing --- composer.json | 2 +- tests/bootstrap.php | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index cee8952..a38e2d2 100644 --- a/composer.json +++ b/composer.json @@ -85,7 +85,7 @@ "rector", "ecs --fix || ecs --fix" ], - "test": "pest" + "test": "pest --parallel" }, "conflict": { "symfony/symfony": "*" diff --git a/tests/bootstrap.php b/tests/bootstrap.php index e717c59..c79f857 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -6,6 +6,8 @@ require dirname(__DIR__) . '/vendor/autoload.php'; if (method_exists(Dotenv::class, 'bootEnv')) { (new Dotenv)->bootEnv(dirname(__DIR__) . '/.env'); + $token = $_SERVER['TEST_TOKEN'] ?? ''; + $_ENV['DATABASE_URL'] .= $token; } if ($_SERVER['APP_DEBUG']) {