@@ -7,8 +7,16 @@ Feature: Execute recipes
7
7
When I execute recipe "foo"
8
8
Then execution of the recipe has succeeded
9
9
And the project directory should contain file "README.md"
10
- And the sauce in index 0 which should have property "Recipe.Name" with value "^foo$"
11
- And the sauce in index 0 which has a valid ID
10
+ And the sauce in index 0 should have property "Recipe::Name" with value "^foo$"
11
+ And the sauce in index 0 has a valid ID
12
+
13
+ Scenario : Execute single recipe with directory hierarcy
14
+ Given a recipe "foo"
15
+ And recipe "foo" generates file "foo/bar.md" with content "initial"
16
+ When I execute recipe "foo"
17
+ Then execution of the recipe has succeeded
18
+ And the project directory should contain file "foo/bar.md"
19
+ And the sauce in index 0 should have property "Files::foo/bar.md"
12
20
13
21
@docker
14
22
Scenario : Execute single recipe from remote registry
@@ -20,7 +28,7 @@ Feature: Execute recipes
20
28
Then execution of the recipe has succeeded
21
29
And no errors were printed
22
30
And the project directory should contain file "README.md"
23
- And the sauce in index 0 which should have property "CheckFrom" with value "^oci://.+/foo$"
31
+ And the sauce in index 0 should have property "CheckFrom" with value "^oci://.+/foo$"
24
32
25
33
Scenario : Execute multiple recipes
26
34
Given a recipe "foo"
@@ -34,8 +42,8 @@ Feature: Execute recipes
34
42
And no errors were printed
35
43
And the project directory should contain file "README.md"
36
44
And the project directory should contain file "Taskfile.yml"
37
- And the sauce in index 0 which should have property "Recipe. Name" with value "^foo$"
38
- And the sauce in index 1 which should have property "Recipe. Name" with value "^bar$"
45
+ And the sauce in index 0 should have property "Recipe:: Name" with value "^foo$"
46
+ And the sauce in index 1 should have property "Recipe:: Name" with value "^bar$"
39
47
40
48
Scenario : New recipe conflicts with the previous recipe
41
49
Given a recipe "foo"
@@ -55,19 +63,19 @@ Feature: Execute recipes
55
63
56
64
Scenario : Execute single recipe to a subpath
57
65
Given a recipe "foo"
58
- And recipe "foo" generates file "README" with content "initial"
59
- And recipes will be executed to the subpath "docs"
66
+ And recipe "foo" generates file "README.md " with content "initial"
67
+ And recipes will be executed to the subpath "docs/pages "
60
68
When I execute recipe "foo"
61
69
And no errors were printed
62
70
Then execution of the recipe has succeeded
63
- And CLI produced an output "docs[\S\s ]+└── README"
64
- And the project directory should contain file "docs/README"
65
- And the sauce in index 0 which should have property "Files. README"
66
- And the sauce in index 0 which should have property "SubPath" with value "^docs$"
71
+ And CLI produced an output "docs[\S\s ]+└── pages[ \S\s ]+└── README\. md "
72
+ And the project directory should contain file "docs/pages/ README.md "
73
+ And the sauce in index 0 should have property "Files:: README.md "
74
+ And the sauce in index 0 should have property "SubPath" with value "^docs/pages $"
67
75
68
76
Scenario : Execute multiple recipes to different subpaths
69
77
Given a recipe "foo"
70
- And recipe "foo" generates file "README" with content "initial"
78
+ And recipe "foo" generates file "README.md " with content "initial"
71
79
And recipes will be executed to the subpath "foo"
72
80
When I execute recipe "foo"
73
81
Then no errors were printed
@@ -76,12 +84,12 @@ Feature: Execute recipes
76
84
And I execute recipe "foo"
77
85
Then no errors were printed
78
86
And execution of the recipe has succeeded
79
- And the project directory should contain file "foo/README"
80
- And the project directory should contain file "bar/README"
81
- And the sauce in index 0 which should have property "Files. README"
82
- And the sauce in index 0 which should have property "SubPath" with value "^foo$"
83
- And the sauce in index 1 which should have property "Files. README"
84
- And the sauce in index 1 which should have property "SubPath" with value "^bar$"
87
+ And the project directory should contain file "foo/README.md "
88
+ And the project directory should contain file "bar/README.md "
89
+ And the sauce in index 0 should have property "Files:: README.md "
90
+ And the sauce in index 0 should have property "SubPath" with value "^foo$"
91
+ And the sauce in index 1 should have property "Files:: README.md "
92
+ And the sauce in index 1 should have property "SubPath" with value "^bar$"
85
93
86
94
Scenario : Try to execute recipe which escapes the project root
87
95
Given a recipe "foo"
0 commit comments