Skip to content

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
@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
@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

3 participants