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 like IgnoreRest is applied, skipping all other features.
      int maxAttempts
      The maximum number of repetitions.
    • Element Detail

      • maxAttempts

        int maxAttempts
        The maximum number of repetitions.
        Default:
        2147483647
      • ignoreRest

        boolean ignoreRest
        Behaves like IgnoreRest is applied, skipping all other features.
        Default:
        true