1 package vid.automation.test.infra;
3 import java.lang.annotation.Retention;
4 import java.lang.annotation.RetentionPolicy;
5 import java.lang.annotation.Target;
7 import static java.lang.annotation.ElementType.METHOD;
8 import static java.lang.annotation.ElementType.TYPE;
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
16 @Retention(RetentionPolicy.RUNTIME)
17 @Target({METHOD, TYPE})
18 public @interface FeatureTogglingTest {
21 * @return list of feature flags relevant to the test
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.
30 boolean flagActive() default true;