Improve verbose output

This commit is contained in:
Thibault Jouan
2014-07-01 17:32:13 +00:00
parent 519178cb41
commit 44a5b20e14
3 changed files with 14 additions and 13 deletions

View File

@@ -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:/