vid-automation selenium tests
[vid.git] / vid-automation / src / main / java / vid / automation / test / infra / FeatureTogglingTest.java
1 package vid.automation.test.infra;
2
3 import java.lang.annotation.Retention;
4 import java.lang.annotation.RetentionPolicy;
5 import java.lang.annotation.Target;
6
7 import static java.lang.annotation.ElementType.METHOD;
8 import static java.lang.annotation.ElementType.TYPE;
9
10 /*
11 In order to skip test classes regards the state of feature flag please use this annotation
12 There are 2 ways to annotate that tests required featureFlags to be active :
13 In method level - with @FeatureTogglingTest on the test method and list of Required Feature flags on
14 In Class level - with @FeatureTogglingTest on the test class and list of Required Feature flags on
15  */
16 @Retention(RetentionPolicy.RUNTIME)
17 @Target({METHOD, TYPE})
18 public @interface FeatureTogglingTest {
19
20     /**
21      * @return list of feature flags relevant to the test
22      */
23     Features[] value();
24
25     /**
26      * @return if all features shall be active.
27      * If true test would run if all features are active.
28      * If false test would run if all features are not active.
29      */
30     boolean flagActive() default true;
31 }