Annotation Type Cucumber


  • @API(status=STABLE)
    @Retention(RUNTIME)
    @Target(TYPE)
    @Testable
    public @interface Cucumber
    Test discovery annotation. Marks the package of the annotated class for test discovery.

    Some build tools do not support the DiscoverySelectors used by Cucumber. As a work around Cucumber will scan the package of the annotated class for feature files and execute them.

    Note about Testable: While this class is annotated with @Testable the recommended way for IDEs and other tooling use the selectors implemented by Cucumber to discover feature files.

    See Also:
    CucumberTestEngine