Cucumber.Compiler (Cucumber v1.0.0)
View SourceCompiles discovered features and steps into ExUnit test modules.
The compilation pipeline works as follows:
- Discovery finds all feature files and step definitions via
Cucumber.Discovery - For each feature file, a unique ExUnit test module is generated
- Module names are derived from the feature file path
(e.g.,
test/features/auth.featurebecomesTest.Features.AuthTest) - The feature is compiled into pickles by
Gherkin.Pickles(expanding scenario outlines and rules); each pickle becomes one ExUnittestblock carrying its pickle id - Tags from features and scenarios are mapped to ExUnit tags for filtering
- Hooks are wired in via
Cucumber.Hooks
Summary
Functions
Compiles all discovered features into ExUnit test modules.