Skip to content

annaet/cypress-tags-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Example Cypress project using cypress-tags

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published