The runner is the minimal "chrome" around the user's app 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 watches and compiles all changes as you make them.
- Runs
*.js
and*.jsx
through babel and bundles with browserify into singledist/cypress_runner.js
- Runs associated unit test of file saved and outputs to terminal
- Compiles
*.scss
files to singledist/cypress_runner.css
- Additionally it compiles both the
reporter
anddriver
yarn workspace @packages/runner watch
yarn workspace @packages/runner build
yarn workspace @packages/runner build-prod
yarn workspace @packages/runner test
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