Annotation Interface TestCategory


@Retention(RUNTIME) @Target(TYPE) @Inherited public @interface TestCategory

Sets the category of a test class.
Categories can be excluded from running tests, or explicitly included.

If categories are explicitly included, only non-excluded tests with explicitly included categories will be run.

To exclude categories, add a new system variable named "categories.exclude" with the names of the categories excluded.
To explicitly include categories, add a new system variable named "categories.include" with the names of the categories included.

Usage:
@TestCategory("NetworkTest")

  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
     
  • Element Details