mirror of
https://github.com/pestphp/pest.git
synced 2026-03-11 18:27:23 +01:00
fix: --retry not running all tests after passing
This commit is contained in:
@ -123,7 +123,9 @@ final class TestCaseMethodFactory
|
|||||||
|
|
||||||
$methodName = Str::evaluable($this->description);
|
$methodName = Str::evaluable($this->description);
|
||||||
|
|
||||||
if (Retry::$retrying && ! TestSuite::getInstance()->retryTempRepository->exists(sprintf('%s::%s', $classFQN, $methodName))) {
|
$retryRepository = TestSuite::getInstance()->retryTempRepository;
|
||||||
|
|
||||||
|
if (Retry::$retrying && ! $retryRepository->isEmpty() && ! $retryRepository->exists(sprintf('%s::%s', $classFQN, $methodName))) {
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -37,6 +37,14 @@ final class TempRepository
|
|||||||
$this->save([]);
|
$this->save([]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Checks if there is any element.
|
||||||
|
*/
|
||||||
|
public function isEmpty(): bool
|
||||||
|
{
|
||||||
|
return $this->all() === [];
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks if the given element exists.
|
* Checks if the given element exists.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user