forked from tpope/vim-cucumber
-
Notifications
You must be signed in to change notification settings - Fork 1
/
example-comments.expected.feature
56 lines (49 loc) · 1.6 KB
/
example-comments.expected.feature
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
# Comments for a feature.
# Maybe even multi-line comments.
Feature: An feature with lots of comments
As a developer
# A good developer, too
I want to put comments everywhere
# Everywhere!
So that I can remember things for later
# So many things...
# Comments for the background.
# Maybe even multi-line comments.
Background:
# Comment on this given line:
Given there is a heavily commented feature
# Comments trailing the background steps.
# Maybe even multi-line comments.
# Comments above scenarios are really common. People are always like,
# justifying their choice of tags.
@tag1 @tag2
Scenario: Indent the feature with comments correctly
Given I have a file with the lines:
# A comment at the start of a table.
| 1 | one |
| 2 | two |
# A comment in the middle of a table.
| 3 | three |
| 4 | four |
# A comment after a table.
When I open the file
And I press gg=G
Then I should see the file reindent good
# Comments trailing the steps.
# Single line comment above some tags.
@tag1
Scenario: A scenario with a table and then a comment
Then I have a table
| 5 | five |
| 6 | six |
# A comment for a scenario after a table and whitspace.
Scenario: Another scenario
Then I am testin' testin' testin'
# Comments trailing the steps.
# A comment for a scenario after some trailing comments.
Scenario: Yet more scenariage
Then I am not really done at all
Scenario: An empty scenario
# A comment after an empty scenario for the next scenario
@tag1
Scenario: A scenario after an empty scenario