Implement dry run mode
This commit is contained in:
11
features/cli/dry_run.feature
Normal file
11
features/cli/dry_run.feature
Normal file
@@ -0,0 +1,11 @@
|
||||
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"
|
@@ -5,5 +5,5 @@ Feature: CLI usage
|
||||
Then the exit status must be 64
|
||||
And the output must contain exactly:
|
||||
"""
|
||||
Usage: producer [-v] recipe_file
|
||||
Usage: producer [-v] [-n] recipe_file
|
||||
"""
|
||||
|
Reference in New Issue
Block a user