adds a new --ci option to pest binary

This commit is contained in:
Fabio Ivona
2021-09-22 10:17:44 +02:00
parent facbf05016
commit dd643faa5c
3 changed files with 17 additions and 4 deletions

View File

@ -119,6 +119,10 @@ final class TestRepository
*/
private function testsUsingOnly(): array
{
if (TestSuite::getInstance()->workingEnv === 'ci') {
return [];
}
return array_filter($this->state, function ($testFactory): bool {
return $testFactory->only;
});