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:
  • Required Element Summary

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

    • millis

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