From 518ef3f3a0e11859e91def53afe0ea18f67a1b5f Mon Sep 17 00:00:00 2001 From: Nuno Maduro Date: Wed, 13 Jan 2021 10:58:09 +0100 Subject: [PATCH] Tests against --parallel --- tests/LaravelApp/app/Console/Commands/TestCommand.php | 4 ++-- tests/Unit/Adapters/ArtisanTestCommandTest.php | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/LaravelApp/app/Console/Commands/TestCommand.php b/tests/LaravelApp/app/Console/Commands/TestCommand.php index 9cbb7cd7..e7012559 100644 --- a/tests/LaravelApp/app/Console/Commands/TestCommand.php +++ b/tests/LaravelApp/app/Console/Commands/TestCommand.php @@ -28,9 +28,9 @@ protected function binary() } if ('phpdbg' === PHP_SAPI) { - return [PHP_BINARY, '-qrr', __DIR__ . '/../../../../../vendor/bin/phpunit']; + return [PHP_BINARY, '-qrr', __DIR__ . '/../../../../../' . $command]; } - return [PHP_BINARY, __DIR__ . '/../../../../../vendor/bin/phpunit']; + return [PHP_BINARY, __DIR__ . '/../../../../../' . $command]; } } diff --git a/tests/Unit/Adapters/ArtisanTestCommandTest.php b/tests/Unit/Adapters/ArtisanTestCommandTest.php index 3124998a..4954c927 100644 --- a/tests/Unit/Adapters/ArtisanTestCommandTest.php +++ b/tests/Unit/Adapters/ArtisanTestCommandTest.php @@ -22,6 +22,8 @@ public function testEnv(): void ]); $this->runTests(['./tests/LaravelApp/artisan', 'test', '--group', 'environment']); + // $this->runTests(['./tests/LaravelApp/artisan', 'test', '--parallel', '--group', 'environment']); + // $this->runTests(['./tests/LaravelApp/artisan', 'test', '--parallel', '--recreate-databases', '--group', 'environment']); } /** @test */ @@ -42,6 +44,8 @@ public function testEnvTesting(): void ]); $this->runTests(['./tests/LaravelApp/artisan', 'test', '--group', 'environmentTesting']); + // $this->runTests(['./tests/LaravelApp/artisan', 'test', '--parallel', '--group', 'environmentTesting']); + // $this->runTests(['./tests/LaravelApp/artisan', 'test', '--parallel', '--recreate-databases', '--group', 'environmentTesting']); } /**