Files
cypress/packages/runner
Tim Griesser e7efc10aed feat: Add initial structure to support GraphQL subscriptions (#20558)
* feat: rename __socket.io -> __socket, add __socket-graphql for graphql-ws

* fix: remove currentTestingType from Query type

* feat: add subscription to refresh when auth state changes

* Update packages/frontend-shared/src/gql-components/HeaderBarContent.vue

* PR review updates, add docs, tests for authChange subscription

* remove login/logout toApp/toLaunchpad calls

* remove login/logout/devChange toApp/toLaunchpad calls

* fix, getCtx lazily to fix proxy performance spec

* Fix, thanks @JessicaSachs

* test fixes, remove flash of missing content in wizard

Co-authored-by: Ryan Manuel <ryanm@cypress.io>
Co-authored-by: Jess <jess@jessicasachs.io>
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2022-03-14 10:03:48 -04:00
..
2021-10-13 23:51:38 +00:00

Runner

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 *.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