Files
cypress/packages/driver
Zach Bloomquist c80e482009 Fix test script, add Mocha result checks to internal Cypress te… (#7110)
* fix cypress.js script typo

* add verify-mocha-results to driver integration test stages

* add cypress-multi-reporters

* fix circle.yml

* fix yarn.lock

* cleanup

* use working_directory instead of yarn workspace commands

* add reports to ui-components and reporter, update circle.yml

* fix circle.yml

* fix circle.yml

* fix circle.yml

* add more verify-mocha-results
2020-04-23 13:00:46 -04:00
..
2020-02-28 12:17:54 -05:00
2019-10-18 12:46:46 -04:00
2020-02-11 12:40:07 +06:30
2019-10-18 12:46:46 -04:00

Driver

This is the core JavaScript library that is loaded inside the browser that is responsible for executing Cypress commands and managing the test runtime.

Building

The driver is actually consumed by the runner like any other npm module. To develop the driver and see changes reflected you need to run the watch task inside of the runner.

yarn lerna run watch --scope @packages/runner --stream

Developing

If you're developing on the driver, you'll want to run in the normal Cypress GUI mode, like you would when you're writing tests for your own Cypress projects.

yarn lerna run cypress:open --scope @packages/driver --stream

Read the runner's README.md for more information.

Running

You can also run all of the driver's tests locally. We don't really recommend this because it takes a long time, and we have this process optimized by load balancing the tests across multiple workers in CI.

It's usually easier to run the tests in the GUI, commit, and then see if anything broke elsewhere.

yarn lerna run start --scope @packages/driver --stream

# in separate terminal
yarn lerna run cypress:run --scope @packages/driver --stream

# or for development
yarn lerna run cypress:open --scope @packages/driver --stream

Debugging

In the browser

localStorage.debug = "cypress:driver"