Running JUnit test multiple times; stop on first failure

I have some Selenium test cases that fail sporadicaly. It would be nice if I could create a run configuration where I specify the Junit method to run and the number of times I'd like to re-run it, and when it fails it would stop... or I could just have all X number of results in the run pane; with the failures alongside the succesfull runs.

Any ideas? Possible feture request?

Thanks!

1 comment
Comment actions Permalink

While searching for the answer myself, I stumbled upon this unanswered question. Goto "Run / Debug Configuration" and select the desired test run of choice or create a new test run. Under Configuration you can set it up to repeat "N Times", "Until Failure" or "Until Success".

1

Please sign in to leave a comment.