Files
cypress/packages/runner
Zach Panzarino 7d468d4e2c Split hooks and open hooks in ide from reporter (#7821)
* Add invocation details to hooks

* Add hooks to emitted root runnable

* Hook details model

* Progress on hook models

* Add commands to hook

* Fix display of hooks

* Display hooks in correct order

* (More) efficiently reorder hooks and display split numbers

* Open hook in IDE functionality

* Properly style button to open in IDE

* Add ability to open test body in IDE

* Fix hooks specs

* Runnables store tests

* Test model unit tests

* HookDetails -> HookProps

* Fix reporter integration tests

* Fix issue with after hook

* Update runner mocha tests

* Remove driver integration test that is no longer needed

* Update snapshot for server tests

* Add reporter integration tests for hooks

* Fix driver querying test

* Add runner test for hooks

* Update reporter hook tests to check for before all

* Fix before/after hook counts

* Fix runner test

* Fix issue with stack trace in ff and clean up mocha override

* Just incase someone names their test or support file common.js

Co-authored-by: Chris Breiding <chrisbreiding@users.noreply.github.com>
2020-07-07 21:17:03 +06:30
..
2020-06-16 14:17:24 -04:00
2020-06-16 14:17:24 -04: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