Skip to content

Commit 08a69c4

Browse files
Dane Harnettlgandecki
authored andcommitted
docs: add section to readme for GLOB filtering of feature files
1 parent e62fe1c commit 08a69c4

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,14 @@ Example:
328328
329329
Please note - we use our own cypress-tags wrapper to speed things up.
330330
For more details and examples please take a look to the [example repo](https://github.com/TheBrainFamily/cypress-cucumber-example).
331-
331+
332+
### Limiting to a subset of feature files
333+
You can use a glob expression to select which feature files should be included.
334+
335+
Example:
336+
```shell
337+
./node_modules/.bin/cypress-tags run -e GLOB='cypress/integration/**/*.feature'
338+
```
332339
333340
### Output
334341
The **cypress-cucumber-preprocessor** can generate a `cucumber.json` file output as it runs the features files. This is separate from, and in addition to, any Mocha reporter configured in Cypress.

0 commit comments

Comments
 (0)