feat: adds --flaky cli option

This commit is contained in:
nuno maduro
2026-04-10 20:03:50 +01:00
parent f528bd8427
commit 3855249ce9
7 changed files with 42 additions and 11 deletions

View File

@ -0,0 +1,19 @@
<?php
declare(strict_types=1);
namespace Pest\TestCaseMethodFilters;
use Pest\Contracts\TestCaseMethodFilter;
use Pest\Factories\TestCaseMethodFactory;
final readonly class FlakyTestCaseFilter implements TestCaseMethodFilter
{
/**
* Filter the test case methods.
*/
public function accept(TestCaseMethodFactory $factory): bool
{
return $factory->flakyTries !== null;
}
}