Packages
Story BDD tool based on cucumber. Parses Gherkin formatted feature files and executes them as tests.
Current section
Files
Jump to
Current section
Files
lib/white_bread/runners/scenario_runner.ex
defimpl WhiteBread.Runners, for: WhiteBread.Gherkin.Elements.Scenario do
def run(scenario, context, background_steps) do
result = WhiteBread.Runners.run(scenario.steps, context, background_steps)
case result do
{:ok, _} -> {:ok, scenario.name}
error_data -> {:failed, error_data}
end
end
end