com.vaadin.testbench.parallel.TestCategory Maven / Gradle / Ivy
/**
* Copyright (C) 2000-2022 Vaadin Ltd
*
* This program is available under Vaadin Commercial License and Service Terms.
*
* See for the full
* license.
*/
package com.vaadin.testbench.parallel;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
*
* 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:
*
* {@code @TestCategory("NetworkTest")}
*
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
@Inherited
public @interface TestCategory {
String value();
}