Cucumber.Compiler (Cucumber v0.9.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) - Background steps become ExUnit
setupblocks - Each scenario becomes an ExUnit
testblock - Scenario Outlines are expanded into individual scenarios using Examples data
- Tags from features and scenarios are mapped to ExUnit tags for filtering
- Hooks are wired into setup/teardown via
Cucumber.Hooks
Summary
Functions
Compiles all discovered features into ExUnit test modules.