You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+17Lines changed: 17 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -254,6 +254,23 @@ targets:
254
254
- package:<your_package>/<your_step>.dart
255
255
```
256
256
257
+
If you have many packages you might want to reuse the whole list of external steps. For that you'll have to create a `bdd_options.yaml` file in the root folder of your project with the following content:
258
+
```yaml
259
+
include: package:bdd_widget_test/bdd_options.yaml # if you want to reuse default steps as well
260
+
externalSteps:
261
+
- package:<your_package>/<your_step>.dart
262
+
```
263
+
264
+
Alternatively, ff you need just to include an external config, use the `include` option in the `build.yaml` config:
265
+
```yaml
266
+
targets:
267
+
$default:
268
+
builders:
269
+
bdd_widget_test|featureBuilder:
270
+
options:
271
+
include: package:<your_package>/bdd_options.yaml
272
+
```
273
+
257
274
### How to group steps in a single project?
258
275
259
276
You may create sub-folders (like `common`, `login`, `home`, etc.) in the `step` folder and move generated steps there. The plugin is smart enough to find them (see the `example` folder).
0 commit comments