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
*[Custom Parameter Type Resolves](#custom-parameter-type-resolves)
@@ -28,6 +28,7 @@ You can follow the documentation below, or if you prefer to hack on a working ex
28
28
*[Smart tagging](#smart-tagging)
29
29
*[How to run the tests](#excluding-tests)
30
30
*[Running tagged tests](#running-tagged-tests)
31
+
*[Ignoring specific scenarios using tags when executing test runner](#ignoring-specific-scenarios-using-tags-when-executing-test-runner)
31
32
*[Output](#output)
32
33
*[IDE support](#ide-support)
33
34
*[Webstorm](#webstorm)
@@ -328,8 +329,28 @@ Example:
328
329
```
329
330
330
331
Please note - we use our own cypress-tags wrapper to speed things up.
332
+
This wrapper calls the cypress executable from local modules and if not found it falls back to the globally installed one.
331
333
For more details and examples please take a look to the [example repo](https://github.com/TheBrainFamily/cypress-cucumber-example).
332
334
335
+
### Ignoring specific scenarios using tags when executing test runner
336
+
You can also use tags to skip or ignore specific tests/scenarios when running cypress test runner (where you don't have the abilitiy to pass parameters like in the examples above for the execution)
337
+
338
+
The trick consists in adding the "env" property with the "TAGS" subproperty in the cypress.json configuration file. It would look something like this:
339
+
340
+
```javascript
341
+
{
342
+
"env": {
343
+
"TAGS":"not @ignore"
344
+
},
345
+
//rest of configuration options
346
+
"baseUrl":"yourBaseUrl",
347
+
"ignoreTestFiles":"*.js",
348
+
//etc
349
+
}
350
+
```
351
+
352
+
Then, any scenarios tagged with @ignore will be skipped when running the tests using the cypress test runner
353
+
333
354
### Limiting to a subset of feature files
334
355
You can use a glob expression to select which feature files should be included.
335
356
@@ -389,6 +410,14 @@ Note, that unlike WebStorm which will correctly identify multiple implementation
0 commit comments