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

Does Serenity have the possibility to rerun failed tests? #3434

Closed
Darenth opened this issue Apr 10, 2024 · 4 comments
Closed

Does Serenity have the possibility to rerun failed tests? #3434

Darenth opened this issue Apr 10, 2024 · 4 comments

Comments

@Darenth
Copy link

Darenth commented Apr 10, 2024

What happened?

I'm looking for information does Serenity have the possibility to rerun failed tests in the documentation, and there is no information about that. Does it mean that this feature is not out of the box of Serenity and have to be configured from junit5 or cucumber perspective?

What did you expect to happen?

No response

Serenity BDD version

4.0.29

JDK version

11

Execution environment

No response

How to reproduce the bug.

no option I as see

How can we make it happen?

Add it to the Serenity BDD backlog and wait for a volunteer to pick it up

@globalworming
Copy link
Collaborator

not sure how it works with cucumber.. but with plain junit it should work by configuring the surefire/failsave plugins https://maven.apache.org/surefire/maven-failsafe-plugin/examples/rerun-failing-tests.html

@globalworming
Copy link
Collaborator

looks like it works just like that with cucumber as well #2136 (comment)

@Darenth
Copy link
Author

Darenth commented Apr 15, 2024

Thanks a lot @globalworming for your response! I tried #2136 already, Serenity reruns the failed test, but the report contains only the first result (failed). I tried it for versions 4.0.19 and 4.1.6 (the latest). Is this behaviour expected?

@globalworming
Copy link
Collaborator

yes, see also #1194

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