mirror of
https://github.com/cypress-io/cypress.git
synced 2026-02-23 07:39:52 -06:00
* develop: chore(deps): update dependency ssri to 6.0.2 [security] (#19351) chore: Fix server unit tests running on mac by using actual tmp dir (#19350) fix: Add more precise types to Cypress.Commands (#19003) fix: Do not screenshot or trigger the failed event when tests are skipped (#19331) fix (#19262) fix: throw when writing to 'read only' properties of `config` (#18896) fix: close chrome when closing electron (#19322) fix: disable automatic request retries (#19161) chore: refactor cy funcs (#19080) chore(deps): update dependency @ffmpeg-installer/ffmpeg to v1.1.0 🌟 (#19300)
Runner
The runner is the minimal "chrome" around the user's app for end-to-end testing and has the following responsibilities:
- Managing communication between the driver, the reporter, the extension, and the server
- Managing the viewport size and scale
- Showing the currently active URL
This package also includes the majority of the code that gets injected into the App Under Test (AUT) by packages/proxy. That bundle's entry point is injection/index.js.
Developing
Watching
This watches and compiles all changes as you make them.
- Runs
*.jsand*.jsxthrough babel and bundles with browserify into singledist/cypress_runner.js - Runs associated unit test of file saved and outputs to terminal
- Compiles
*.scssfiles to singledist/cypress_runner.css - Additionally it compiles both the
reporteranddriver
yarn workspace @packages/runner watch
Building
For development
yarn workspace @packages/runner build
For production
yarn workspace @packages/runner build-prod
Testing
Node Unit Tests
yarn workspace @packages/runner test
Cypress Tests
You can run Cypress tests found in cypress/integration:
yarn workspace @packages/runner cypress:open
To watch and reload changes to the runner while testing you'll want to run:
yarn workspace @packages/runner watch
