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

Commit

Permalink
feat: better handling of negative title filters
Browse files Browse the repository at this point in the history
  • Loading branch information
bahmutov committed Dec 3, 2021
1 parent d20f6d1 commit b2d47fa
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions README.md
Expand Up @@ -152,8 +152,6 @@ $ npx cypress run --env grep=,grepTags=,burn=
$ npx cypress run --env grep=hello
# run all tests with "hello world" in their title
$ npx cypress run --env grep="hello world"
# run all tests WITHOUT "hello world" in their title
$ npx cypress run --env grep="-hello world"
```

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

### negative filter

```shell
# run all tests WITHOUT "hello world" in their title
$ npx cypress run --env grep="-hello world"
# run tests with "hello", but without "word" in the titles
$ npx cypress run --env grep="hello; -world"
```

## Filter with tags

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

0 comments on commit b2d47fa

Please sign in to comment.