Is there a plugin for Jenkins CI to rerun only the failed tests, I can do it with a rerun profile and a cucumber rake task, but is there a plugin already ?
Also aware of Naginator plugin which runs the entire build on failure
https://wiki.jenkins-ci.org/display/JENKINS/Naginator+Plugin
but I want to run only the failed tests from the previous build
With jUnit and the surefire plugin for maven, you can can start your tests with a parameter that will restart your testcase in case it failed. mvn -Dsurefire. rerunFailingTestsCount=5 test where 5 is the maximum number of restart on fail accepted until it will generate an error. Save this answer.
For retrying the failure test runs automatically during the test run itself, we need to implement the IRetryAnalyzer interface provided by TestNG. The IRetryAnalyzer interface provides methods to control retrying the test runs.
If you use the TestComplete Support plugin to run TestComplete tests with Jenkins, after the build run is over, the plugin will publish test results to Jenkins automatically. You can view them on the build results page.
Have a look at the Flaky Test Handler Plugin
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With