producer-core/features/task_nested_tasks.feature
2014-09-26 10:26:00 +00:00

21 lines
502 B
Gherkin

Feature: nested tasks
Background:
Given a recipe with:
"""
task :outer_task do
task :inner_task do
echo 'OK'
end
end
"""
Scenario: applies nested tasks
When I successfully execute the recipe
Then the output must match /\AOK/
Scenario: indents logging from nested tasks
When I successfully execute the recipe with option -v
Then the output must match /^ Task:.+/
And the output must match /^ action:.+/