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

Commit 4b6fe6b

Browse files
committed
fix: update the install and use readme section
1 parent 7156727 commit 4b6fe6b

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,16 @@ yarn add -D cypress-grep
4141
require('cypress-grep')()
4242
```
4343

44+
Start grepping by title and tags:
45+
46+
```shell
47+
# run only the tests tagged "smoke"
48+
# that have "login" in their titles
49+
$ npx cypress run --env grep=login,grepTags=smoke
50+
```
51+
52+
### Plugin file
53+
4454
**optional:** load and register this module from the [plugin file](https://on.cypress.io/writing-and-organizing-tests#Plugins-file)
4555

4656
```js
@@ -52,7 +62,7 @@ module.exports = (on, config) => {
5262
}
5363
```
5464

55-
The plugin code will print a little message on load, for example
65+
By loading this module from the plugin file, it allows the `cypress-grep` to print a little message on load, for example
5666

5767
```shell
5868
$ npx cypress run --env grep=hello

0 commit comments

Comments
 (0)