Skip to content

bahmutov/cypress-select-tests-example

Repository files navigation

cypress-select-tests-example Build status renovate-app badge

Example using cypress-select-tests to run only some tests

See cypress/plugins/index.js. In this test we only allow tests with the string "does" in the title. Thus other tests are automatically skipped.

one a single test runs

When running in headless mode npx cypress run only a single test runs too

  Running: spec.js...    (1 of 1)
picking tests from file cypress/integration/spec.js
found tests
[ [ 'suite', 'works A' ],
  [ 'suite', 'does B' ],
  [ 'suite', 'tests C' ] ]


  suite
    - works A
    ✓ does B (38ms)
    - tests C


  1 passing (81ms)
  2 pending

Links

About

Example using cypress-select-tests to run only some tests

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published