Skip to content

mmisty/cypress-grep-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cypress-grep-example

This is example of @mmisty/cypress-grep package usage for cypress

To run tests:

  1. run all with @smoke:
    CYPRESS_GREP='@smoke' npm run cy:grep
    # or 
    npm run cy:grep -- --grep '@smoke'
  2. run all non-@smoke:
    CYPRESS_GREP='!@smoke' npm run cy:grep
    # or 
    npm run cy:grep -- --grep '!@smoke'
  3. run all tests with @smoke or @P1:`
    CYPRESS_GREP='@smoke|@P1' npm run cy:grep
    # or 
    npm run cy:grep -- --grep '@smoke|@P1'
  4. run all tests with @smoke AND @P1:
    CYPRESS_GREP='@smoke&@P1' npm run cy:grep
    # or 
    npm run cy:grep -- --grep '@smoke&@P1'
  5. inverts result - will run all tests without @smoke and @P1:
    CYPRESS_GREP='!(@smoke&@P1)' npm run cy:grep
    # or 
    npm run cy:grep -- --grep '!(@smoke&@P1)'

All tags are case in-sensitive (you can either use @p1 or @P1)

To see help:

npm run cy:grep -- --help

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published