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

Support repeatable annotations #1030

Vampire opened this issue Sep 18, 2019 · 0 comments


Copy link

commented Sep 18, 2019

Groovy 2.5.0 added support for repeatable annotations.
It would be nice if the Spock annotations where it makes sense would be declared repeatable so that for write

def 'my test'() { }

instead of

@Use([PrivateFinalFieldSetterCategory, Whitebox])
def 'my test'() { }

as the former is better readable, better copyable and better commentable individually.

Also for example for Retry it would allow to have different count and delay settings for different exceptions / conditions.

These are the ones I'd say make sense to be repeatable:

  • StubBeans
  • ScanScopedBeans
  • UseModules
  • Use
  • ConfineMetaClassChanges
  • Subject
  • See
  • Retry
  • Requires
  • PendingFeature
  • Issue
  • IgnoreIf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
1 participant
You can’t perform that action at this time.