Debian Codegraph @

tools/test-features/step-data.feature

raw
1 Feature: steps may have associated data
2
3 Scenario: step with text
4 Given some body of text
5 """
6 Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed
7 do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut
8 enim ad minim veniam, quis nostrud exercitation ullamco laboris
9 nisi ut aliquip ex ea commodo consequat.
10 """
11 Then the text is as expected
12
13 Scenario: step with a table
14 Given some initial data
15 | name | department |
16 | Barry | Beer Cans |
17 | Pudey | Silly Walks |
18 | Two-Lumps | Silly Walks |
19 Then we will have the expected data
20
21 @xfail
22 Scenario: step with text that fails
23 Given some body of text
24 """
25 Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed
26 do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut
27 enim ad minim VENIAM, quis nostrud exercitation ullamco laboris
28 nisi ut aliquip ex ea commodo consequat.
29 """
30 Then the text is as expected
31
32 Scenario Outline: step with text and subtitution
33 Given some body of text
34 """
35 Lorem <ipsum> dolor sit amet, consectetur adipisicing elit, sed
36 do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut
37 enim ad minim veniam, quis nostrud exercitation ullamco laboris
38 nisi ut aliquip ex ea commodo consequat.
39 """
40 Then the text is substituted as expected
41
42 Examples:
43 | ipsum |
44 | spam |
45 | ham |
46
47
48 Scenario Outline: step with a table and substution
49 Given some initial data
50 | name | department |
51 | Barry | <spam> Cans |
52 | Pudey | Silly Walks |
53 | Two-Lumps | Silly Walks |
54 Then we will have the substituted data
55
56 Examples:
57 | spam |
58 | spam |
59 | ham |
60