| 1 |
Feature: analizo wrapper script |
| 2 |
|
| 3 |
Scenario: invoking a tool |
| 4 |
When I run "analizo metrics lib t" |
| 5 |
Then analizo must emit a warning matching "Usage:" |
| 6 |
And analizo must emit a warning matching "analizo.metrics" |
| 7 |
And the exit status must not be 0 |
| 8 |
|
| 9 |
Scenario: must not pass --version ahead |
| 10 |
When I run "analizo metrics --version" |
| 11 |
Then analizo must emit a warning matching "Invalid option: --version" |
| 12 |
And the exit status must not be 0 |
| 13 |
|
| 14 |
Scenario: display help |
| 15 |
When I run "analizo --help" |
| 16 |
Then the output must match "[NAME|N^HNA^HAM^HME^HE]\\s+analizo\\s" |
| 17 |
And the output must match "[USAGE|U^HUS^HSA^HAG^HGE^HE]\\s+analizo\\s" |
| 18 |
And the exit status must be 0 |
| 19 |
|
| 20 |
Scenario: display version |
| 21 |
When I run "analizo --version" |
| 22 |
Then the output must match "^analizo version [0-9]+.[0-9]+.[0-9]+" |
| 23 |
And the exit status must be 0 |
| 24 |
|
| 25 |
Scenario: invalid option |
| 26 |
When I run "analizo --invalid-option" |
| 27 |
Then the output must match "Unrecognized command" |
| 28 |
And the exit status must not be 0 |