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 float 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 "float" configuration item defines as
|
|
| name | commandline_flag | has_file_entry | has_env_var |
|
|
| <name> | <flag> | <configfile> | <environment> |
|
|
When I call GetConfig
|
|
Then the "float" result should return "<result>"
|
|
|
|
Examples:
|
|
| name | flag | configfile | environment | result |
|
|
| float_xxxd | | false | false | 1.99 |
|
|
| float_xxcd | | true | false | 2.99 |
|
|
| float_xexd | | false | true | 3.99 |
|
|
| float_xecd | | true | true | 3.99 |
|
|
| float_lxxd | --float_lxxd | false | false | 4.99 |
|
|
| float_lxcd | --float_lxcd | true | false | 4.99 |
|
|
| float_lexd | --float_lexd | false | true | 4.99 |
|
|
| float_lecd | --float_lecd | true | true | 4.99 |
|
|
| float_sxxd | -I | false | false | 4.99 |
|
|
| float_sxcd | -J | true | false | 4.99 |
|
|
| float_sexd | -K | false | true | 4.99 |
|
|
| float_secd | -L | true | true | 4.99 |
|