Files
cypress/packages/runner
Ben Kucera c0d063c7dd feat: dashboard orchestration (#14925)
* test orchestration

* bump json-schemas

* fix unit

* fix server-ct build

* add @types/node

* add runtime to resolved config, send resolved config to postInstanceTests

* add missing fixture spec, support sending test config for skipped and proper title

* spec prior., refactor recording tests, update specs

* remove unneded utils, fix e2e_record_spec, rename testConfig, fix unit

* fix bug with spec SKIP not stopping test execution

* bump json-schemas

* bump json schemas 2

* refactor exit early and error logic, add runnerCapabilities + bump json schemas

* update yarn.lock

* fix referenceError

* fix: skipAction -> skipSpecAction, muteAction -> muteTestAction

* exit with non-zero for canceled runs, improve messaging for canceled runs

* fixup unit tests

* colorize run cancelation messages
2021-03-15 10:42:11 -04:00
..
2020-06-16 14:17:24 -04:00
2021-02-04 15:45:16 -05:00
2020-06-16 14:17:24 -04:00

Runner

Runner

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

Developing

Watching

This watches and compiles all changes as you make them.

  • Runs *.js and *.jsx through babel and bundles with browserify into single dist/cypress_runner.js
  • Runs associated unit test of file saved and outputs to terminal
  • Compiles *.scss files to single dist/cypress_runner.css
  • Additionally it compiles both the reporter and driver
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