mirror of
https://github.com/cypress-io/cypress.git
synced 2026-02-05 06:40:56 -06:00
* 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>
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
*.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
