Skip to content
This repository was archived by the owner on Mar 29, 2023. It is now read-only.

Commit b2d47fa

Browse files
committed
feat: better handling of negative title filters
1 parent d20f6d1 commit b2d47fa

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,6 @@ $ npx cypress run --env grep=,grepTags=,burn=
152152
$ npx cypress run --env grep=hello
153153
# run all tests with "hello world" in their title
154154
$ npx cypress run --env grep="hello world"
155-
# run all tests WITHOUT "hello world" in their title
156-
$ npx cypress run --env grep="-hello world"
157155
```
158156

159157
You can pass multiple title substrings to match separating them with `;` character. Each substring is trimmed.
@@ -163,6 +161,15 @@ You can pass multiple title substrings to match separating them with `;` charact
163161
$ npx cypress run --env grep="hello world; auth user"
164162
```
165163

164+
### negative filter
165+
166+
```shell
167+
# run all tests WITHOUT "hello world" in their title
168+
$ npx cypress run --env grep="-hello world"
169+
# run tests with "hello", but without "word" in the titles
170+
$ npx cypress run --env grep="hello; -world"
171+
```
172+
166173
## Filter with tags
167174

168175
You can select tests to run or skip using tags by passing `--env grepTags=...` value.

0 commit comments

Comments
 (0)