mirror of
https://github.com/cypress-io/cypress.git
synced 2026-01-29 10:29:27 -06:00
* create directory path from screenshot name * fix screenshot e2e specs * ensure unique file paths for non-named screenshots * append failure screenshots with ‘— failure’ * fix snapshot differences caused by slow computer * fix driver specs * fix minutes/seconds e2e snapshot replacer * fix minutes/seconds e2e snapshot replacer again * fix e2e specs failing due to screenshot path differences * more snapshot fixes * more snapshot fixes * more snapshot fixes * fix reporter showing wrong path for nested spec when no tests * nest non-named screenshots in path based on spec path * fix specs * fix snapshot * test that server + project state is reset between specs in cypress run mode * rename spec.path to spec.relative. pass around the spec object instead of a string path - store state on the project for current spec + browsers - simplify how desktop gui passes around spec object - fixes #1921 - make all specs a real spec model - rename ‘Run all tests’ to ‘Run all specs’ * remove pretty-error dependency * fixes #1919 and #1918, add Cypress.spec and Cypress.browser * fixes all the failing tests * fixes failing tests * types: Cypress.spec * add types for Cypress.browser * fixes more failing tests * enable null for spec props when running "All Specs" * read comments per PR https://github.com/cypress-io/cypress/pull/1858#issuecomment-396121876 * fixes failing tests * fix linting * fix types assertion * fixes failing tests * fixes failing tests, update from -- failed to (failed) * ugh regexp * fixes more tests * add name, specName, and testFailure to the afterScreenshot props * fix failing tests. append (failed) for failed screenshots - use { testFailure: true } to indicate a failing test screenshot for use in props
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
Install
The runner's dependencies can be installed with:
cd packages/runner
npm install
Development
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
npm run watch
One Time Build
For development
npm run build
For production
npm run build-prod
Testing
npm test
