Package spock.lang
Annotation Type RepeatUntilFailure
-
@Beta @Target(METHOD) @Retention(RUNTIME) public @interface RepeatUntilFailure
Repeats a feature until it fails or the maximum number of repetitions is reached.For parameterized features, all parameter sets are repeated.
This extension is only intended to aid in manual testing and debugging.
- Since:
- 2.3
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description boolean
ignoreRest
Behaves likeIgnoreRest
is applied, skipping all other features.int
maxAttempts
The maximum number of repetitions.
-
-
-
-
ignoreRest
boolean ignoreRest
Behaves likeIgnoreRest
is applied, skipping all other features.- Default:
- true
-
-