Skip to content

Commit

Permalink
Tests against --parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
nunomaduro committed Jan 13, 2021
1 parent c143c38 commit 518ef3f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/LaravelApp/app/Console/Commands/TestCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}
}
4 changes: 4 additions & 0 deletions tests/Unit/Adapters/ArtisanTestCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand All @@ -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']);
}

/**
Expand Down

0 comments on commit 518ef3f

Please sign in to comment.