package cz.moneta.test.harness.annotations;

import cz.moneta.test.harness.HarnessJunit5Extension;
import cz.moneta.test.harness.data.Browser;
import org.junit.jupiter.api.TestInstance;
import org.junit.jupiter.api.extension.ExtendWith;
import org.junit.jupiter.api.parallel.Execution;
import org.junit.jupiter.api.parallel.ExecutionMode;
import org.junit.platform.runner.JUnitPlatform;
import org.junit.runner.RunWith;

import java.lang.annotation.*;

@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@RunWith(JUnitPlatform.class)
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
@Execution(ExecutionMode.CONCURRENT)
@ExtendWith(HarnessJunit5Extension.class)
public @interface TestScenario {

    String name() default "";

    Browser[] browsers() default {Browser.MS_EDGE, Browser.GOOGLE_CHROME};
}