Skip to content

Latest commit

 

History

History
49 lines (35 loc) · 1.22 KB

README.md

File metadata and controls

49 lines (35 loc) · 1.22 KB

cypress-tags-example

Demo Cypress project using cypress-tags.

Install

npm install

Run Tests

This suite contains a series of tagged and untagged test cases. They don't do anything, but you can run them using:

npx cypress run

Some of the tests are tagged with tags such as wip, smoke and regression. You can use any string you like as a tag.

Here are some scenarios you can run.

  • Run all wip tests:
CYPRESS_INCLUDE_TAGS=wip npx cypress run
  • Run all tests tagged with smoke or regression:
CYPRESS_INCLUDE_TAGS=smoke,regression npx cypress run
  • Run all tests apart from those tagged as wip:
CYPRESS_EXCLUDE_TAGS=wip npx cypress run
  • Run all smoke or regression tests but not those marked as wip:
CYPRESS_INCLUDE_TAGS=smoke,regression CYPRESS_EXCLUDE_TAGS=wip npx cypress run
  • Run all smoke and regression tests:
CYPRESS_INCLUDE_USE_BOOLEAN_AND=true CYPRESS_INCLUDE_TAGS=smoke,regression npx cypress run
  • Run all tests but not those marked as smoke and regression:
CYPRESS_EXCLUDE_USE_BOOLEAN_AND=true CYPRESS_EXCLUDE_TAGS=smoke,regression npx cypress run