This is example of @mmisty/cypress-grep package usage for cypress
To run tests:
- run all with
@smoke
:CYPRESS_GREP='@smoke' npm run cy:grep # or npm run cy:grep -- --grep '@smoke'
- run all non-
@smoke
:CYPRESS_GREP='!@smoke' npm run cy:grep # or npm run cy:grep -- --grep '!@smoke'
- run all tests with
@smoke
or@P1
:`CYPRESS_GREP='@smoke|@P1' npm run cy:grep # or npm run cy:grep -- --grep '@smoke|@P1'
- run all tests with
@smoke
AND@P1
:CYPRESS_GREP='@smoke&@P1' npm run cy:grep # or npm run cy:grep -- --grep '@smoke&@P1'
- 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