Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Plugin to Rerun failed tests on Jenkins

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

like image 676
nik7 Avatar asked Nov 06 '13 17:11

nik7


People also ask

How do you rerun the failed cases in Jenkins?

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.

How failed TC will rerun automatically?

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.

Where do u see failed test cases in Jenkins?

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.


1 Answers

Have a look at the Flaky Test Handler Plugin

like image 109
Andrew Gray Avatar answered Sep 23 '22 03:09

Andrew Gray