cypress-grep
Advanced tools
Comparing version 2.1.0 to 2.1.1
{ | ||
"name": "cypress-grep", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"description": "Filter tests using substring", | ||
@@ -5,0 +5,0 @@ "main": "src/support", |
@@ -22,2 +22,4 @@ # cypress-grep | ||
Watch the video [intro to cypress-grep plugin](https://www.youtube.com/watch?v=HS-Px-Sghd8) | ||
## Install and use | ||
@@ -43,2 +45,12 @@ | ||
Start grepping by title and tags: | ||
```shell | ||
# run only the tests tagged "smoke" | ||
# that have "login" in their titles | ||
$ npx cypress run --env grep=login,grepTags=smoke | ||
``` | ||
### Plugin file | ||
**optional:** load and register this module from the [plugin file](https://on.cypress.io/writing-and-organizing-tests#Plugins-file) | ||
@@ -55,3 +67,3 @@ | ||
The plugin code will print a little message on load, for example | ||
By loading this module from the plugin file, it allows the `cypress-grep` to print a little message on load, for example | ||
@@ -58,0 +70,0 @@ ```shell |
18003
335