-
Type:
Suggestion
-
Resolution: Unresolved
-
None
-
Component/s: Tests
-
None
-
0
-
1
If a job fails with test failures, you should have the option to only re-run the failed tests and not the entire job.
How could this be done? Well, I imagine as part of your plan configuration, you could specify extra options for rerunning failed tests. These options would simply get tacked on to the the maven task of your choice (via a dropdown). Bamboo would provide you with a variable that contains a comma delimited list of the test classnames.
Essentially, I would add the config: -Dit.tests=${bamboo.failed.tests}
Then when I click rerun failed tests, bamboo puts this as a maven param and boom, my job now only reruns the failed tests, not the entire test suite.