Automatic rerun for failed tests

Hello,

We are exploring the implementation of automatic reruns within our workflow. Based on the current documentation, it appears that automatic reruns are configured at the step level, meaning the entire step is rerun when enabled.
https://circleci.com/docs/guides/orchestrate/automatic-reruns/

Our goal, however, is to automatically rerun failed tests only, rather than rerunning the full step. Could you confirm whether CircleCI supports this, or if there is a recommended approach or workaround for rerunning only failed tests automatically?

Thank you!

I think this new Smarter Testing feature that is in Beta may be a better fit for your use case, did you check it out already?

1 Like

Thank you for the shoutout @levlaz! Yes, the ability to automatically rerun failed test is a new feature of Smarter Testing.

1 Like