mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 15:57:21 +01:00
refacto: --retry option
This commit is contained in:
@ -2,14 +2,13 @@
|
||||
|
||||
use Pest\Plugins\Retry;
|
||||
|
||||
beforeEach(fn () => Retry::$retrying = false);
|
||||
|
||||
afterEach(fn () => Retry::$retrying = false);
|
||||
|
||||
it('retries if --retry argument is used', function () {
|
||||
it('orders by defects and stop on defects if when --retry is used ', function () {
|
||||
$retry = new Retry();
|
||||
|
||||
$retry->handleArguments(['--retry']);
|
||||
$arguments = $retry->handleArguments(['--retry']);
|
||||
|
||||
expect(Retry::$retrying)->toBeTrue();
|
||||
expect($arguments)->toBe([
|
||||
'--order-by=defects',
|
||||
' --stop-on-defect',
|
||||
]);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user