30 lines
1.6 KiB
Gherkin
30 lines
1.6 KiB
Gherkin
|
#noinspection CucumberUndefinedStep
|
||
|
Feature: String configuration items
|
||
|
In order to be able to create and retrieve boolean configuration items
|
||
|
As a developer
|
||
|
I want to develop code that will make this simple, efficient, and consistent
|
||
|
|
||
|
Scenario Outline: Integer config items
|
||
|
Given an application with a name of "Testing App" and a prefix of "test"
|
||
|
And a version of "1.2.3"
|
||
|
And a "boolean" configuration item defines as
|
||
|
| name | commandline_flag | has_file_entry | has_env_var |
|
||
|
| <name> | <flag> | <configfile> | <environment> |
|
||
|
When I call GetConfig
|
||
|
Then the "boolean" result should return "<result>"
|
||
|
|
||
|
Examples:
|
||
|
| name | flag | configfile | environment | result |
|
||
|
| boolean_xxxd | | false | false | false |
|
||
|
| boolean_xxcd | | true | false | true |
|
||
|
| boolean_xexd | | false | true | false |
|
||
|
| boolean_xecd | | true | true | false |
|
||
|
| boolean_lxxd | --boolean_lxxd | false | false | true |
|
||
|
| boolean_lxcd | --boolean_lxcd | true | false | true |
|
||
|
| boolean_lexd | --boolean_lexd | false | true | true |
|
||
|
| boolean_lecd | --boolean_lecd | true | true | true |
|
||
|
| boolean_sxxd | -M | false | false | true |
|
||
|
| boolean_sxcd | -N | true | false | true |
|
||
|
| boolean_sexd | -O | false | true | true |
|
||
|
| boolean_secd | -P | true | true | true |
|