@@ -78,14 +78,14 @@ Feature: Add a project to the manifest via the CLI
7878 url: some-remote-server/existing.git
7979 """
8080 When I interactively add "some-remote-server/MyLib.git" with inputs
81- | prompt_contains | answer |
82- | Project name | my -lib |
83- | Destination path | libs /my |
84- | Version | master |
85- | Source path | |
86- | Ignore paths | |
87- | Add project to manifest ? | y |
88- | Run update | n |
81+ | Question | Answer |
82+ | Project name | my -lib |
83+ | Destination path | libs /my |
84+ | Version | master |
85+ | Source path | |
86+ | Ignore paths | |
87+ | Add project to manifest ? | y |
88+ | Run update | n |
8989 Then the manifest 'dfetch.yaml' contains entry
9090 """
9191 - name: my-lib
@@ -104,14 +104,14 @@ Feature: Add a project to the manifest via the CLI
104104 url: some-remote-server/existing.git
105105 """
106106 When I interactively add "some-remote-server/MyLib.git" with inputs
107- | prompt_contains | answer |
108- | Project name | my -lib |
109- | Destination path | my -lib |
110- | Version | v1 |
111- | Source path | |
112- | Ignore paths | |
113- | Add project to manifest ? | y |
114- | Run update | n |
107+ | Question | Answer |
108+ | Project name | my -lib |
109+ | Destination path | my -lib |
110+ | Version | v1 |
111+ | Source path | |
112+ | Ignore paths | |
113+ | Add project to manifest ? | y |
114+ | Run update | n |
115115 Then the manifest 'dfetch.yaml' contains entry
116116 """
117117 - name: my-lib
@@ -129,14 +129,14 @@ Feature: Add a project to the manifest via the CLI
129129 url: some-remote-server/existing.git
130130 """
131131 When I interactively add "some-remote-server/MyLib.git" with inputs
132- | prompt_contains | answer |
133- | Project name | my -lib |
134- | Destination path | my -lib |
135- | Version | master |
136- | Source path | docs /api |
137- | Ignore paths | |
138- | Add project to manifest ? | y |
139- | Run update | n |
132+ | Question | Answer |
133+ | Project name | my -lib |
134+ | Destination path | my -lib |
135+ | Version | master |
136+ | Source path | docs /api |
137+ | Ignore paths | |
138+ | Add project to manifest ? | y |
139+ | Run update | n |
140140 Then the manifest 'dfetch.yaml' contains entry
141141 """
142142 - name: my-lib
@@ -155,7 +155,7 @@ Feature: Add a project to the manifest via the CLI
155155 url: some-remote-server/existing.git
156156 """
157157 When I interactively add "some-remote-server/MyLib.git" with inputs
158- | prompt_contains | answer |
158+ | Question | Answer |
159159 | Project name | my -lib |
160160 | Destination path | my -lib |
161161 | Version | master |
@@ -183,14 +183,14 @@ Feature: Add a project to the manifest via the CLI
183183 url: some-remote-server/existing.git
184184 """
185185 When I interactively add "some-remote-server/MyLib.git" with inputs
186- | prompt_contains | answer |
187- | Project name | MyLib |
188- | Destination path | MyLib |
189- | Version | master |
190- | Source path | |
191- | Ignore paths | |
192- | Add project to manifest ? | y |
193- | Run update | y |
186+ | Question | Answer |
187+ | Project name | MyLib |
188+ | Destination path | MyLib |
189+ | Version | master |
190+ | Source path | |
191+ | Ignore paths | |
192+ | Add project to manifest ? | y |
193+ | Run update | y |
194194 Then the manifest 'dfetch.yaml' contains entry
195195 """
196196 - name: MyLib
@@ -209,13 +209,13 @@ Feature: Add a project to the manifest via the CLI
209209 url: some-remote-server/existing.git
210210 """
211211 When I interactively add "some-remote-server/MyLib.git" with inputs
212- | prompt_contains | answer |
213- | Project name | MyLib |
214- | Destination path | MyLib |
215- | Version | master |
216- | Source path | |
217- | Ignore paths | |
218- | Add project to manifest ? | n |
212+ | Question | Answer |
213+ | Project name | MyLib |
214+ | Destination path | MyLib |
215+ | Version | master |
216+ | Source path | |
217+ | Ignore paths | |
218+ | Add project to manifest ? | n |
219219 Then the manifest 'dfetch.yaml' is replaced with
220220 """
221221 manifest:
@@ -224,3 +224,29 @@ Feature: Add a project to the manifest via the CLI
224224 - name: existing
225225 url: some-remote-server/existing.git
226226 """
227+
228+ Scenario : Interactive add with empty src (repo root) does not add src field
229+ Given the manifest 'dfetch.yaml'
230+ """
231+ manifest:
232+ version: '0.0'
233+ projects:
234+ - name: existing
235+ url: some-remote-server/existing.git
236+ """
237+ When I interactively add "some-remote-server/MyLib.git" with inputs
238+ | Question | Answer |
239+ | Project name | MyLib |
240+ | Destination path | MyLib |
241+ | Version | master |
242+ | Source path | |
243+ | Ignore paths | |
244+ | Add project to manifest ? | y |
245+ | Run update | n |
246+ Then the manifest 'dfetch.yaml' contains entry
247+ """
248+ - name: MyLib
249+ url: some-remote-server/MyLib.git
250+ branch: master
251+ """
252+ And the manifest 'dfetch.yaml' does not contain 'src:'
0 commit comments