Improve verbose output
This commit is contained in:
@@ -16,16 +16,18 @@ Feature: CLI verbose option
|
||||
|
||||
Scenario: prints tasks name
|
||||
When I successfully execute the recipe with option -v
|
||||
Then the output must match /Task:.+task_ok/
|
||||
Then the output must match /^Task:.+`task_ok'/
|
||||
And the output must match /^Task:.+`task_ko'/
|
||||
|
||||
Scenario: prints whether condition is met
|
||||
Scenario: appends `applying' or `skipped' after tasks name
|
||||
When I successfully execute the recipe with option -v
|
||||
Then the output must match /task_ok.+ condition: met.*task_ko.* condition: NOT met/
|
||||
Then the output must match /task_ok.+applying...$/
|
||||
And the output must match /task_ko.+skipped$/
|
||||
|
||||
Scenario: prints actions info
|
||||
When I successfully execute the recipe with option -v
|
||||
Then the output must match /task_ok.+ action: echo/
|
||||
Then the output must match /^ action: echo/
|
||||
|
||||
Scenario: formats message with our simple logger
|
||||
When I successfully execute the recipe with option -v
|
||||
Then the output must match /\ATask:.+task_ok.*\n.*condition/
|
||||
Then the output must match /\ATask:/
|
||||
|
Reference in New Issue
Block a user