Annotation Type TimeoutSuite


  • @Retention(RUNTIME)
    @Target(TYPE)
    @Inherited
    public @interface TimeoutSuite
    Maximum execution time for an entire suite (including all hooks and tests). Suite is defined as any class-scope TestRules, BeforeClass and AfterClass hooks, suite class's constructor, instance-scope TestRules, Before and After hooks and Test methods.

    The suite class's static initializer is not part of the measured code (if you have static initializers in your tests, get rid of them).

    Overrides the global default RandomizedRunner.DEFAULT_TIMEOUT or a system property override SysGlobals.SYSPROP_TIMEOUT.

    See Also:
    Timeout
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      int millis
      Timeout time in millis.
    • Element Detail

      • millis

        int millis
        Timeout time in millis. The timeout time is approximate, it may take longer to actually abort the suite.