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
{{ message }}
This repository was archived by the owner on Mar 29, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+7-4Lines changed: 7 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -193,16 +193,19 @@ This package comes with [src/index.d.ts](./src/index.d.ts) definition file that
193
193
194
194
## Test suites
195
195
196
-
The tags are also applied to the "describe" blocks with some limitations:
197
-
198
-
- you can only use the config object tags
196
+
The tags are also applied to the "describe" blocks. In that case, the tests look up if any of their outer suites are enabled.
199
197
200
198
```js
201
199
describe('block with config tag', { tags:'@smoke' }, () => {
202
200
})
203
201
```
204
202
205
-
- currently only the invert tag to skip the blog has meaningful effect. For example you can skip the above suite of tests by using `--env grepTags=-@smoke` value. Keep an eye on issue [#22](https://github.com/bahmutov/cypress-grep/issues/22) for the full support implementation.
203
+
```
204
+
# run any tests in the blocks having "@smoke" tag
205
+
--env grepTags=@smoke
206
+
# skip any blocks with "@smoke" tag
207
+
--env grepTags=-@smoke
208
+
```
206
209
207
210
See the [cypress/integration/describe-tags-spec.js](./cypress/integration/describe-tags-spec.js) file.
0 commit comments