Skip to content

Option to only repeat failed tests#1965

Closed
PieterDC wants to merge 22 commits intosebastianbergmann:4.8from
PaddleCMS:only-repeat-failed
Closed

Option to only repeat failed tests#1965
PieterDC wants to merge 22 commits intosebastianbergmann:4.8from
PaddleCMS:only-repeat-failed

Conversation

@PieterDC
Copy link

Opening new ticket because #1708 'A --only-repeat-failed PHPUnit argument' got closed due to issue queue cleanup by the maintainer. And work on the WIP code has advanced since.

Similar to what @giorgiosironi suggested in #46 'Implement "previous failures first" mode' but not dependent on any log file.

Inspired by #1022 'Automatically rerun failed tests to test for "flaky" tests' I wrote code that builds upon the already existing '--repeat' argument and allows you to run a test like:

phpunit --repeat 3 --only-repeat-failed tests/Kanooh/Paddle/Core/

This will cause all tests in 'tests/Kanooh/Paddle/Core/' to run 3 times, except for the tests that succeeded in the first run already. The remaining runs will be marked as skipped.

PieterDC and others added 22 commits May 6, 2015 14:27
# Conflicts:
#	src/Extensions/RepeatedTest.php
#	src/TextUI/Command.php
@sebastianbergmann
Copy link
Owner

@PieterDC
Copy link
Author

I know @sebastianbergmann but:

I'm not that familiar with GitHub issue queues...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants