Print a warning when in dry run mode
This commit is contained in:
1 parent
aac5f603e3
commit
1188b2008f
7 files changed
+52
-7
No files matched your search
@@ -1,11 +1,17 @@
|
||||
Feature: CLI dry run option
|
||||
|
||||
Scenario: perfoms a trial run without applying actions
|
||||
Background:
|
||||
Given a recipe with:
|
||||
"""
|
||||
task :say_hello do
|
||||
echo 'hello'
|
||||
end
|
||||
"""
|
||||
|
||||
Scenario: perfoms a trial run without applying actions
|
||||
When I successfully execute the recipe with option -n
|
||||
Then the output must not contain "hello"
|
||||
|
||||
Scenario: prints a warning before any output
|
||||
When I successfully execute the recipe with option -n
|
||||
Then the output must match /\AWarning: running in dry run mode, actions will NOT be applied/
|
||||
Reference in new issue
Block a user