-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathgherkin.snippets.json
68 lines (68 loc) · 1.53 KB
/
gherkin.snippets.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
{
"Scenario": {
"prefix": [
"scen"
],
"body": [
"Scenario: ${1:name_${TM_LINE_NUMBER}}$0",
"\tGiven ",
"\tWhen ",
"\tThen "
]
},
"Scenario Outline": {
"prefix": [
"sceo"
],
"body": [
"Scenario Outline: ${1:name_${TM_LINE_NUMBER}}$0",
"\tGiven \"<input>\"",
"\tWhen ",
"\tThen \"<output>\"",
"",
"\tExamples: ex1",
"\t\t| in1 | out1 |",
"\t\t| in2 | out2 |",
"",
"\tExamples: ex2",
"\t\t| in3 | out3 |",
"\t\t| in4 | out4 |"
]
},
"Scenario with Given Table": {
"prefix": [
"scgt"
],
"body": [
"Scenario: ${1:name_${TM_LINE_NUMBER}}$0",
"\tGiven ",
"\t\t| a | b |",
"\t\t| c | d |",
"\tWhen ",
"\tThen "
]
},
"Scenario with Then Table": {
"prefix": [
"sctt"
],
"body": [
"Scenario: ${1:name_${TM_LINE_NUMBER}}$0",
"\tGiven ",
"\tWhen ",
"\tThen the results are",
"\t\t| out1 |",
"\t\t| out2 |"
]
},
"Examples": {
"prefix": [
"exam"
],
"body": [
"\nExamples: ${1:ex_${TM_LINE_NUMBER}}$0",
"\t| in1 | out1 |",
"\t| in2 | out2 |"
]
}
}