cukedep 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/CHANGELOG.md +3 -0
- data/README.md +33 -3
- data/lib/cukedep/constants.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YzA2NDcyMDk3YzZkNmY0ZTkxYWM4MjViODhkNmRiNDYyMTM0NjE4Yw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
M2Q5NmI0NzgzMTVhMWFkNmNkN2MwOTM5NDNhZTczMTdlYTFiMTBlMQ==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ODM5NjBjZjdkYjE5ZjQ4ZmE0OTQ2ODJlNjMzNWQ1OTU4MTAyOGJjYmI3MmVi
|
10
|
+
MzUzZTUwOTY3YjgzNTRlODZmZTMxMTI5NDg2MjE0NWY2YjM2MWFhZWI2MGJj
|
11
|
+
YWRhOGVkMWMyMGNhMzFhMTcwNTY2ZTcyN2Y2ZGRhMTVmZjgxY2M=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MzM3NmFiNTY1MjNjM2U5MDk0ZmVlM2EyMWNlZTc3MTExNWNmYzJiZDgzZDY0
|
14
|
+
MjlhYzdmNTk2NzE2YWVhZWFiNmQwZTQ2YWVmMjRhMTRjYmY1MWQ0ZGIzNTA5
|
15
|
+
M2QzYjMzYTY5OTIwYjJmMGExMDg1M2RhOTRkYzk3NTAzYzgwMzU=
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -47,7 +47,7 @@ Stay in that folder and type the following command-line:
|
|
47
47
|
cukedep --project ../../../sample --dry-run
|
48
48
|
```
|
49
49
|
|
50
|
-
You
|
50
|
+
You told cukedep to do the following:
|
51
51
|
* Read (parse) all the feature files in the current dir.
|
52
52
|
* Resolve the dependencies between the feature files (based on Gherkin @tags with a special format).
|
53
53
|
* Generate a number of dependency reports and drawing.
|
@@ -57,10 +57,40 @@ the project located at the relative path ```../../../sample```
|
|
57
57
|
To generate all the above files and run the feature files with Cucumber,
|
58
58
|
then retry the command line without the --dry-run option:
|
59
59
|
```bash
|
60
|
-
cukedep --project ../../../sample
|
60
|
+
cukedep --project ../../../sample
|
61
|
+
```
|
62
|
+
|
63
|
+
Now you see cukedep redoing the same actions as previously but in addition
|
64
|
+
it:
|
65
|
+
* Copies a feature file from the current directive to the Cucumber-based project
|
66
|
+
* Let Cucumber execute the feature file
|
67
|
+
* Repeat the two above steps in a sequence that meet the dependencies specified in the feature files.
|
68
|
+
|
69
|
+
|
70
|
+
### How can I define dependencies? ###
|
71
|
+
To define dependencies between feature files, use Gherkin specific tags.
|
72
|
+
Suppose that feature `foo` depends on feature `bar`.
|
73
|
+
Then the feature file `foo` may begin as follows:
|
74
|
+
|
75
|
+
```cucumber
|
76
|
+
# The next line names this feature 'foo' and make dependent on 'bar'
|
77
|
+
@feature:foo @depends_on:bar
|
78
|
+
Feature: Check-in
|
79
|
+
As a video rental employee
|
80
|
+
I want to register return of rented videos
|
81
|
+
So that other members can them too
|
82
|
+
```
|
83
|
+
|
84
|
+
While feature `bar` may start like this:
|
85
|
+
```cucumber
|
86
|
+
# The next line names this feature 'bar'
|
87
|
+
@feature:bar
|
88
|
+
Feature: Renting videos
|
89
|
+
As a video rental employee
|
90
|
+
I want to register rentals made by a member
|
91
|
+
So I can run my business
|
61
92
|
```
|
62
93
|
|
63
|
-
### How can I define ###
|
64
94
|
|
65
95
|
|
66
96
|
Copyright
|
data/lib/cukedep/constants.rb
CHANGED