cypress-expect
Cypress CLI wrapper where you can specify the total number of expected tests
Last updated 2 months ago by bahmutov .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install cypress-expect 
SYNC missed versions from official npm registry.

cypress-expect ci status renovate-app badge

Cypress CLI wrapper where you can specify the total number of expected tests. Read Wrap Cypress Using NPM Module API

Use

Assuming cypress has been installed already

npm i -D cypress-expect # or yarn add -D cypress-expect
# instead of "cypress run ..."
npx cypress-expect run --passing <N> ...

Where N is the number of total tests expected to pass.

The rest of the arguments is parsed using Cypress CLI method and executed via cypress.run. Thus the execution should match the regular cypress run ... command.

Note: when running in parallel mode where the tests are split, this module would not work, since only a subset of specs will execute on the current machine.

Options

--passing <N> checks if the total number of passing tests is <N>

--min-passing <N> checks if the total number of passing tests is >= <N>

--failing <N> checks if the total number of failing tests is <N>

--pending <N> checks if the total number of pending tests is <N>

Debugging

Run this script with environment variable DEBUG=cypress-expect to see verbose logs

Current Tags

  • 2.2.1                                ...           latest (2 months ago)

11 Versions

  • 2.2.1                                ...           2 months ago
  • 2.2.0                                ...           2 months ago
  • 2.1.2                                ...           3 months ago
  • 2.1.1                                ...           3 months ago
  • 2.1.0                                ...           3 months ago
  • 2.0.2                                ...           3 months ago
  • 2.0.1                                ...           3 months ago
  • 2.0.0                                ...           4 months ago
  • 1.1.1                                ...           4 months ago
  • 1.1.0                                ...           4 months ago
  • 1.0.0                                ...           4 months ago
Maintainers (1)
Downloads
Today 11
This Week 11
This Month 11
Last Day 0
Last Week 0
Last Month 3
Dependencies (2)
Dev Dependencies (4)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |