Flatten features directory tree
This commit is contained in:
@@ -1,11 +0,0 @@
|
||||
Feature: CLI dry run option
|
||||
|
||||
Scenario: perfoms a trial run without applying actions
|
||||
Given a recipe with:
|
||||
"""
|
||||
task :say_hello do
|
||||
echo 'hello'
|
||||
end
|
||||
"""
|
||||
When I successfully execute the recipe with option -n
|
||||
Then the output must not contain "hello"
|
@@ -1,9 +0,0 @@
|
||||
Feature: CLI usage
|
||||
|
||||
Scenario: prints the usage when an argument is missing
|
||||
When I run `producer`
|
||||
Then the exit status must be 64
|
||||
And the output must contain exactly:
|
||||
"""
|
||||
Usage: producer [-v] [-n] recipe_file
|
||||
"""
|
@@ -1,42 +0,0 @@
|
||||
Feature: CLI verbose option
|
||||
|
||||
Scenario: prints tasks name
|
||||
Given a recipe with:
|
||||
"""
|
||||
task :say_hello do
|
||||
end
|
||||
"""
|
||||
When I successfully execute the recipe with option -v
|
||||
Then the output must match /Task:.+say_hello/
|
||||
|
||||
Scenario: prints whether condition is met
|
||||
Given a recipe with:
|
||||
"""
|
||||
task :task_ok do
|
||||
condition { true }
|
||||
end
|
||||
task :task_ko do
|
||||
condition { false }
|
||||
end
|
||||
"""
|
||||
When I successfully execute the recipe with option -v
|
||||
Then the output must match /task_ok.+ condition: met.*task_ko.* condition: NOT met/
|
||||
|
||||
Scenario: prints actions info
|
||||
Given a recipe with:
|
||||
"""
|
||||
task :say_hello do
|
||||
echo 'hello message'
|
||||
end
|
||||
"""
|
||||
When I successfully execute the recipe with option -v
|
||||
Then the output must match /say_hello.+ action: echo/
|
||||
|
||||
Scenario: formats message with our simple logger
|
||||
Given a recipe with:
|
||||
"""
|
||||
task :say_hello do
|
||||
end
|
||||
"""
|
||||
When I successfully execute the recipe with option -v
|
||||
Then the output must match /\ATask:.+say_hello.*\n.*condition/
|
Reference in New Issue
Block a user