Skip to content

Latest commit

 

History

History
 
 

reporter

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Reporter

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

Building

For development

yarn lerna run build --scope @packages/reporter --stream

For production

yarn lerna run build-prod --scope @packages/reporter --stream

Developing

To see the reporter render, see Developing the driver.

Watching

  • Runs *.js and *.jsx through babel and bundles with browserify into single dist/reporter.js
  • Runs associated unit test of file saved and outputs to terminal
  • Compiles *.scss files to single dist/reporter.css
yarn lerna run watch --scope @packages/reporter --stream

Testing

Cypress

Run Cypress tests found in cypress/integration.

yarn lerna run cypress:open --scope @packages/reporter --stream

You'll want to run yarn lerna run watch --scope @packages/reporter --stream to iterate on the reporter under test while testing.

You'll want to run yarn lerna run watch --scope @packages/runner --stream to get changes to the main Cypress reporter while testing.

Enzyme

Run enzyme component tests found in *.spec files in src:

yarn lerna run test --scope @packages/reporter --stream