package io.cucumber.junit.platform.engine;

import org.apiguardian.api.API;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Test discovery annotation. Marks the package of the annotated class for test
 * discovery.
 * <p>
 * Some build tools do not support the {@link org.junit.platform.engine.discovery.DiscoverySelectors}
 * used by Cucumber. As a work around Cucumber will scan the package of the
 * annotated class for feature files and execute them.
 *
 * @see CucumberTestEngine
 */
@API(status = API.Status.STABLE)
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
public @interface Cucumber {
}

@@ -68,16 +68,71 @@
 api.API;
+%0Aimport org.junit.platform.commons.annotation.Testable;
 %0A%0Aimport
@@ -625,16 +625,214 @@
 e them.%0A
+ * %3Cp%3E%0A * Note about Testable: While this class is annotated with @Testable the%0A * recommended way for IDEs and other tooling use the selectors implemented%0A * by Cucumber to discover feature files.%0A
  *%0A * @s
@@ -952,16 +952,26 @@
 e.TYPE)%0A
+@Testable%0A
 public @

Annotate Cucumber with @Testable