mirror of
https://github.com/cypress-io/cypress.git
synced 2026-05-07 23:40:21 -05:00
3c6a0929d5
* chore: do the minimal to update mobx from 5 to 6 [run ci] chore: update mobx-react from v7 to v9 [run ci] bump cache [run ci] * do not alias mobx or mobx-react. This causes an issue where webpack, in production mode, bundles the cjs production dependency of mobx (mobx.cjs.production.min.js) into cypress_runner.js (in the runner package), but @packages/app (bundled via vite), bundles mobx.esm.js, which is NOT minimized and is expecting the global store/state set by the app to also not be minimized. [run ci] * run update on all machines [run ci] * add changelog entry [run ci]
Reporter
The reporter shows the running results of the tests. It includes the following:
- A button to focus the list of test files
- Stats for number of tests passed, failed, and pending
- The total test run duration
- Control for toggling auto-scrolling
- Controls for various states (running, paused, stopped, etc.)
- A command log, showing:
- suites
- tests
- hooks
- commands and assertions with detailed information
- any failures/errors
Building
For development
yarn workspace @packages/reporter build
For production
yarn workspace @packages/reporter build-prod
Developing
To see the reporter render, see Developing the driver.
Watching
- Runs
*.jsand*.jsxthrough babel and bundles with browserify into singledist/reporter.js - Compiles
*.scssfiles to singledist/reporter.css
yarn workspace @packages/reporter watch
Testing
Run Cypress tests found in cypress/integration.
yarn workspace @packages/reporter cypress:open
You'll want to run yarn workspace @packages/reporter watch to iterate on the reporter under test while testing.
You'll want to run yarn workspace @packages/runner watch to get changes to the main Cypress reporter while testing.
