ποΈ Typed Data Tables
The default LISTOFOBJECT_PARAMS data-table mode β Gherkin data tables generate type-safe inner classes with typed accessors. No Cucumber dependency.
ποΈ Cucumber Data Tables
The CUCUMBERDATATABLE mode β Gherkin data tables are passed as Cucumber DataTable objects, giving you the full Cucumber DataTable API for conversions and POJO mapping.
ποΈ TDD Workflow
Iterative red-green development backed by failing tests generated from incomplete feature files.
ποΈ Abstract Mode
Abstract mode is the default β the generator emits an abstract test class with one abstract method per step. Missing implementations are caught at compile time, not at run time.
ποΈ DocStrings
Gherkin doc strings (triple-quoted blocks) become a trailing String parameter on the step method, with formatting preserved via Java text blocks.
ποΈ Convention Discovery
@Gherkin2JUnit with no path argument β the processor finds feature files by convention, looking in the same package as the marker class.
ποΈ Glob Patterns
A glob pattern in @Gherkin2JUnit lets a single marker class drive many feature files β one generated test class per feature, all extending the same marker.
ποΈ Type Refinement
Refine the generated data-table Param classes with enums (or any custom type) to turn data drift into a compile error.
ποΈ Config Inheritance
Share generation options across many marker classes via @Gherkin2JUnitOptions on a base class. Override specific options per marker as needed.
ποΈ Cucumber Annotations
Two related capabilities: generating @Given / @When / @Then Cucumber annotations on step methods, and using those annotations to match steps to implementations by pattern instead of by method name.