Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow rerun of failed tests (only) #1209

merged 1 commit into from Apr 17, 2019


None yet
1 participant
Copy link

commented Apr 15, 2019

When a suite of tests is run some of its tests might fail. Sometimes it is desirable to rerun only the failed tests, skipping the successful ones (for instance to check whether the SUT is actually broken or the tests are flaky or to retest after changing the SUT). Similar functionality exists when running unit tests from an IDE.

This pull requests makes rerunning failed tests in FitNesse easy by generating a suite page referencing the failed tests of a run (RerunLastFailures) after each suite/test. A button linking to this page is added to the test result page (next to the failure navigator). When no tests fail the page is deleted and the button is not shown. When the button is clicked the failed tests are immediately re-executed (it links to /RerunLastFailures?suite).

Sample test result page with a failed test:
Screenshot 2019-04-15 at 23 03 54

RerunLastFailures is a normal suite page (with !see references to the failed tests) and its execution will generate a new version of itself containing only those tests that failed (again) in the rerun.

@fhoeben fhoeben merged commit 72bc4f9 into unclebob:master Apr 17, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.