-
Notifications
You must be signed in to change notification settings - Fork 754
/
specflow-config.json
281 lines (273 loc) · 12.4 KB
/
specflow-config.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
{
"$schema": "http://json-schema.org/draft-04/schema#",
/*
Changelog:
1.1
- Added "CucumberExpressionAttribute" to trace/stepDefinitionSkeletonStyle and set it is as default.
1.0
- Initial SpecFlow configuration schema containing SpecFlow v3.9 settings and IDE settings
*/
"type": "object",
"additionalProperties": true,
"properties": {
"language": {
"description": "Use this section to define the default language for feature files and other language-related settings. For more details see https://docs.specflow.org/projects/specflow/en/latest/Installation/Configuration.html#language",
"type": "object",
"additionalProperties": true,
"properties": {
"feature": {
"description": "The default language of feature files added to the project. We recommend using specific culture names (e.g.: \"en-US\") rather than generic (neutral) cultures (e.g.: \"en\").",
"type": "string",
"default": "en-US"
}
}
},
"bindingCulture": {
"description": "Use this section to define the culture for executing binding methods and converting step arguments. For more details see https://docs.specflow.org/projects/specflow/en/latest/Installation/Configuration.html#bindingculture",
"type": "object",
"additionalProperties": true,
"properties": {
"name": {
"description": "Specifies the culture to be used to execute binding methods and convert step arguments. If not specified, the feature language is used. We recommend using specific culture names (e.g.: \"en-US\") rather than generic (neutral) cultures (e.g.: \"en\").",
"type": "string",
"default": "not specified"
}
}
},
"generator": {
"description": "Use this section to define unit test generation options. For more details see https://docs.specflow.org/projects/specflow/en/latest/Installation/Configuration.html#generator",
"type": "object",
"additionalProperties": true,
"properties": {
"allowDebugGeneratedFiles": {
"description": "By default, the debugger is configured to step through the generated code. This helps you debug your feature files and bindings. Disable this option by setting this attribute to \"true\".",
"type": "boolean",
"default": false
},
"allowRowTests": {
"description": "Determines whether \"row tests\" should be generated for scenario outlines. This setting is ignored if the unit test framework does not support row based testing.",
"type": "boolean",
"default": false
},
"addNonParallelizableMarkerForTags": {
"description": "Defines a set of tags, any of which specify that a feature should be excluded from running in parallel with any other feature. For mor details see https://docs.specflow.org/projects/specflow/en/latest/Execution/Parallel-Execution.html",
"type": "array",
"default": [],
"items": {
"type": "string"
}
}
}
},
"runtime": {
"description": "Use this section to specify various test execution options. For more details see https://docs.specflow.org/projects/specflow/en/latest/Installation/Configuration.html#runtime",
"type": "object",
"additionalProperties": true,
"properties": {
"missingOrPendingStepsOutcome": {
"description": "Determines how SpecFlow behaves if a step binding is not implemented or pending.",
"type": "string",
"default": "Pending",
"enum": [ "Pending", "Inconclusive", "Ignore", "Error" ]
},
"obsoleteBehavior": {
"description": "Determines how SpecFlow behaves if a step binding is marked with [Obsolete] attribute.",
"type": "string",
"default": "Warn",
"enum": [ "None", "Warn", "Pending", "Error" ]
},
"stopAtFirstError": {
"description": "Determines whether the execution should stop when encountering the first error, or whether it should attempt to try and match subsequent steps (in order to detect missing steps).",
"type": "boolean",
"default": false
}
}
},
"trace": {
"description": "Use this section to determine the SpecFlow trace output. For more details see https://docs.specflow.org/projects/specflow/en/latest/Installation/Configuration.html#trace",
"type": "object",
"additionalProperties": true,
"properties": {
"traceSuccessfulSteps": {
"description": "Determines whether SpecFlow should trace successful step binding executions.",
"type": "boolean",
"default": true
},
"traceTimings": {
"description": "Determines whether SpecFlow should trace execution time of the binding methods (only if the execution time is longer than the minTracedDuration value).",
"type": "boolean",
"default": false
},
"minTracedDuration": {
"description": "Specifies a threshold for tracing the binding execution times. Example: 0:0:0.1 (100 ms)",
"type": "string",
"default": "0:0:0.1"
},
"stepDefinitionSkeletonStyle": {
"description": "Specifies the default step definition style.",
"type": "string",
"default": "CucumberExpressionAttribute",
"enum": [ "CucumberExpressionAttribute", "RegexAttribute", "MethodNameUnderscores", "MethodNamePascalCase", "MethodNameRegex" ]
}
}
},
"stepAssemblies": {
"description": "This section can be used to configure additional assemblies that contain external binding assemblies. The assembly of the SpecFlow project (the project containing the feature files) is automatically included. The binding assemblies must be placed in the output folder (e.g. bin/Debug) of the SpecFlow project, for example by adding a reference to the assembly from the project. For more details see https://docs.specflow.org/projects/specflow/en/latest/Installation/Configuration.html#stepassemblies",
"type": "array",
"default": [],
"items": {
"type": "object",
"additionalProperties": true,
"properties": {
"assembly": {
"description": "The name of the assembly containing bindings.",
"type": "string"
}
}
}
},
"ide": {
"description": "This section contains all the extension configurations related to the IDE.",
"type": "object",
"additionalProperties": true,
"properties": {
"specFlow": {
"$ref": "#/definitions/SpecFlow"
},
"traceability": {
"$ref": "#/definitions/Traceability"
},
"editor": {
"$ref": "#/definitions/Editor"
}
}
},
"$schema": {
"type": "string"
}
},
"definitions": {
"SpecFlow": {
"description": "Settings related to SpecFlow projects",
"type": "object",
"additionalProperties": false,
"properties": {
"isSpecFlowProject": {
"description": "Enables the project to be handled as SpecFlow project. (Default: [detect automatically])",
"type": "boolean"
},
"generatorFolder": {
"description": "The path of the SpecFlow generator folder used by the project, that is usually the 'tools' folder of the SpecFlow NuGet package, e.g. '..\\MyDependencies\\SpecFlow.2.3.0\\tools'. (Default: [detect from the installed SpecFlow NuGet package])",
"type": "string"
},
"configFilePath": {
"description": "The path of the SpecFlow configuration file (App.config or specflow.json) used by the project, e.g. 'specflow.json'. (Default: [detect config file automatically])",
"type": "string"
},
"version": {
"description": "The SpecFlow version used by the project, e.g. '2.3.1'. (Default: [detect version automatically])",
"type": "string",
"pattern": "^(?:\\.?[0-9]+){2,}(?:\\-[\\-a-z0-9]*)?$"
},
"traits": {
"description": "The list of the SpecFlow-related project traits. The possible traits are: 'MsBuildGeneration', 'XUnitAdapter', 'DesignTimeFeatureFileGeneration', e.g. '[\"XUnitAdapter\"]'. (Default: [detect from the installed NuGet packages])",
"type": "array",
"items": {
"enum": [ "None", "MsBuildGeneration", "XUnitAdapter", "DesignTimeFeatureFileGeneration" ]
}
}
}
},
"Traceability": {
"description": "Settings for traceability of scenarios, see http://speclink.me/deveroomtraceability for details.",
"type": "object",
"additionalProperties": false,
"properties": {
"tagLinks": {
"description": "List of tags patterns that should be converted to an external URL",
"type": "array",
"items": {
"type": "object",
"description": "Tag pattern configuration",
"additionalProperties": false,
"properties": {
"tagPattern": {
"description": "A regular expression that matches to the tag name (without leading '@' sign). The identifier of the artifacts should be matched with a named regex group. E.g. 'issue\\\\:(?<id>\\\\d+)'. ",
"type": "string"
},
"urlTemplate": {
"description": "An URL template to generate the external link. It can contain parameters in an '{paramName}' format, where 'paramName' refers to the regular expression group name in the 'tagPattern'. E.g. 'https://github.com/me/my-project/issues/{id}'",
"type": "string"
}
},
"required": [ "tagPattern", "urlTemplate" ]
}
}
}
},
"Editor": {
"description": "This section contains all the Editor related configurations.",
"type": "object",
"additionalProperties": true,
"properties": {
"showStepCompletionAfterStepKeywords": {
"description": "Determines whether the extension should suggest step completions.",
"type": "boolean",
"default": true
},
"gherkinFormat": {
"description": "Provides settings for formatting Gherkin feature files",
"type": "object",
"additionalItems": true,
"properties": {
"indentFeatureChildren": {
"description": "Specifies whether child elements of Feature (Background, Rule, Scenario, Scenario Outline) should be indented.",
"type": "boolean",
"default": false
},
"indentRuleChildren": {
"description": "Specifies whether child elements fo Rule (Background, Scenario, Scenario Outline) should be indented.",
"type": "boolean",
"default": false
},
"indentSteps": {
"description": "Specifies whether steps of scenarios should be indented.",
"type": "boolean",
"default": true
},
"indentAndSteps": {
"description": "Specifies whether the 'And' and 'But' steps of the scenarios should have an additional indentation.",
"type": "boolean",
"default": false
},
"indentDataTable": {
"description": "Specifies whether DataTable arguments should be indented within the step.",
"type": "boolean",
"default": true
},
"indentDocString": {
"description": "Specifies whether DocString arguments should be indented within the step.",
"type": "boolean",
"default": true
},
"indentExamples": {
"description": "Specifies whether the Examples block should be indented within the Scenario Outline.",
"type": "boolean",
"default": false
},
"indentExamplesTable": {
"description": "Specifies whether the Examples table should be indented within the Examples block.",
"type": "boolean",
"default": true
},
"tableCellPaddingSize": {
"description": "The number of space characters to be used on each sides as table cell padding.",
"type": "integer",
"default": 1
}
}
}
}
}
}
}