-
Notifications
You must be signed in to change notification settings - Fork 1
/
feature_file_improvements.feature
65 lines (56 loc) · 3.19 KB
/
feature_file_improvements.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
57
58
59
60
61
62
63
64
65
Feature: We want to be able to deal with Cucumber changing formats easily
In order to improve the way our features files are imported
As part of the system
I want to be able to use cucumbers functionality to read our feature files
Scenario: We should be able to extract a scenario outline
Given we have a feature file
And we create a FeatureFile from a cucumber feature file with a scenario outline
Then a scenario outline should be found
Scenario: We should be able to extract a scenarios examples
Given we have a feature file
And we create a FeatureFile from a cucumber feature file with a scenario outline
Then a scenario outline should be found
And the scenario outlines example should be found
Scenario: We need a way to get Scenario Outlines
Given we create a FeatureFile from a cucumber feature file with a scenario outline
When a feature is valid
And it has a scenario outline
Then each scenario outline should have the expected steps
Scenario: We should not have the Scenario Outline as a prefix
Given we create a FeatureFile from a cucumber feature file with a scenario outline
When a feature is valid
And it has a scenario outline
And each scenario should not be prefixed with 'Scenario Outline:'
Scenario: When a we have a scenario outline we also want to parse its examples
Given we create a FeatureFile from a cucumber feature file with a scenario outline
When a feature is valid
And it has a scenario outline
Then each scenario outline should have the expected steps
And the scenario outline should precede its examples
Scenario: When saving a scenario outlines examples we want to associate the example heading with the associated actions
Given we create a FeatureFile from a cucumber feature file with a scenario outline
When a feature is valid
And it has a scenario outline
And the scenario outline should precede its examples
Then the example should have a list of actions
Scenario: The associated actions should be separated and not in the format they are in within cucumber
Given we create a FeatureFile from a cucumber feature file with a scenario outline
When a feature is valid
And it has a scenario outline
And the scenario outline should precede its examples
Then the example should have a list of actions
And the actions should only contain "page"
Scenario Outline: All actions should be correctly associated to each of their items
Given we create a FeatureFile from a cucumber feature file with a scenario outline
When a feature is valid
And it has a scenario outline
And the scenario outline should precede its examples
Then the example should have a list of actions
And the actions should only contain "page"
And the "<action>" should have "<item>" associated to it "<amount>" of times
Examples: Actions and the number of times an action item should be stored
| action | item | amount |
| page | projects | 1 |
| page | features | 1 |
| page | stories | 1 |
| page | steps | 1 |