Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retry Mechanism For Failed Tests For 'N' times #65

Open
anas-baadshah opened this issue Feb 7, 2021 · 2 comments
Open

Retry Mechanism For Failed Tests For 'N' times #65

anas-baadshah opened this issue Feb 7, 2021 · 2 comments

Comments

@anas-baadshah
Copy link

anas-baadshah commented Feb 7, 2021

Do we have a mechanism to rerun the failed tests 'n' times. As I can see the re-run by file mechanism cannot be implemented since I can see a comment from the cuckulater example

/**
 * The CucumberOptions annotation is mandatory for exactly one of the classes in the test project.
 * Only the first annotated class that is found will be used, others are ignored. If no class is
 * annotated, an exception is thrown. This annotation does not have to placed in runner class
 */

How can we implement a retry mechanism? Any advice/ docs?
Thanks

@lsuski
Copy link
Contributor

lsuski commented Feb 7, 2021

Maybe this would require small change in CucumberAndroidJUnitRunner to be able to find another class with rerun file specified, e.g. with some specific annotation. Rerun file itself must be located on the device. Searching this class instead of default one would determined by instrumentation runner argument. This would require PR

@lsuski
Copy link
Contributor

lsuski commented Dec 9, 2021

No work on my side. In general I don't find it good approach and I invest my time to make tests reliable amd to find cause of failures

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants