mirror of
https://github.com/cypress-io/cypress.git
synced 2026-04-22 15:12:27 -05:00
943c578a0b
Co-authored-by: Renovate Bot <bot@renovateapp.com>
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
- Toggle-able auto-scrolling of command log
Installing
The reporter's dependencies can be installed with:
cd packages/reporter
npm install
The reporter may also require that dependencies by installed at the root of this repository:
npm install
Building
For development
npm run build
For production
npm run 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 - Runs associated unit test of file saved and outputs to terminal
- Compiles
*.scssfiles to singledist/reporter.css
npm run watch
Testing
Cypress
Run Cypress tests found in cypress/integration.
npm run cypress:open
You'll want to run npm run watch in the packages/reporter to iterate on the reporter under test while testing.
You'll want to run npm run watch in the packages/runner to get changes to the main Cypress reporter while testing.
Enzyme
Run enzyme component tests found in *.spec files in src:
npm test
