config/features/string.feature

30 lines
1.8 KiB
Gherkin
Raw Normal View History

2024-08-09 20:05:53 +00:00
#noinspection CucumberUndefinedStep
Feature: String configuration items
In order to be able to create and retrieve string configuration items
As a developer
I want to develop code that will make this simple, efficient, and consistent
Scenario Outline: String 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 "string" configuration item defines as
| name | commandline_flag | has_file_entry | has_env_var |
| <name> | <flag> | <configfile> | <environment> |
When I call GetConfig
Then the "string" result should return "<result>"
Examples:
| name | flag | configfile | environment | result |
| string_xxxd | | false | false | default value |
| string_xxcd | | true | false | config file value |
| string_xexd | | false | true | environment variable value |
| string_xecd | | true | true | environment variable value |
| string_lxxd | --string_lxxd | false | false | command line value |
| string_lxcd | --string_lxcd | true | false | command line value |
| string_lexd | --string_lexd | false | true | command line value |
| string_lecd | --string_lecd | true | true | command line value |
| string_sxxd | -A | false | false | command line value |
| string_sxcd | -B | true | false | command line value |
| string_sexd | -C | false | true | command line value |
| string_secd | -D | true | true | command line value |