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 Spock methods with custom @Unroll template #275

Merged
merged 2 commits into from
Apr 24, 2024

Conversation

pshevche
Copy link
Member

Summary

Spock methods with a custom @Unroll template failed to be retried, as we did not search for a method corresponding to the reported test name. With this change, we check the method for the presence of @Unroll annotation. If the reported test name matches the declared template, we will add the declared test method name to the retry filter instead of the reported name.

Note: this wasn't working neither for Spock 2 nor for Spock 1 with JUnit platform or not.

@pshevche pshevche self-assigned this Apr 18, 2024
@pshevche pshevche linked an issue Apr 18, 2024 that may be closed by this pull request
Signed-off-by: Pavlo Shevchenko <pshevchenko@gradle.com>
Signed-off-by: Pavlo Shevchenko <pshevchenko@gradle.com>
@pshevche pshevche force-pushed the pshevche/94-retry-unroll-junit4 branch from 524567d to 885ca22 Compare April 18, 2024 19:07
@pshevche pshevche requested a review from a team April 19, 2024 07:14
@pshevche pshevche requested a review from a team April 22, 2024 13:53
@pshevche pshevche merged commit 12a282d into main Apr 24, 2024
6 checks passed
@pshevche pshevche modified the milestone: 1.5.9 Apr 25, 2024
@pshevche pshevche deleted the pshevche/94-retry-unroll-junit4 branch May 10, 2024 12:38
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

Successfully merging this pull request may close these issues.

Retry of an @Unroll method fails with JUnit 4 runner
2 participants