package com.atlassian.bitbucket.test.annotations;

import java.lang.annotation.*;

/**
 * Indicates the annotated integration test must be run based on the state (enabled / disabled) of a dark feature.
 */
@Inherited
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE, ElementType.METHOD})
public @interface DarkFeatureTest {
    /** The required dark feature property. Must not start with 'atlassian.darkfeature' */
    String property();

    /** Whether the test requires the feature to be enabled or disabled. Enabled by default. */
    boolean ifFeatureEnabled() default true;
}
