mirror of
https://github.com/cypress-io/cypress.git
synced 2026-03-14 05:10:45 -05:00
* tighten up potential xvfb display problems - improve the warning message on possible display problems - reuse existing helper functions for platform detection - instead of relying on timing mechanisms, if a possible display problem is detected on linux - capture all of the stderr silently and if the broken gtk message is detected, retry running * consolidated and simplified smoke testing, xvfb error logging and messaging - added —dev support to cypress verify cli command * fix lots of tests, restore one error message * fixed remaining CLI tests * console.log pong only in electron mode * remove dead code
Cypress CLI source
This folder is used to build Cypress NPM module.
Building
See scripts/build.js. Note that the built NPM package will include NPM_README.md as its public README file.
Testing
To build and test an NPM package:
npm installnpm run build
This creates build folder.
cd build; npm pack
This creates an archive, usually named cypress-<version>.tgz. You can install this archive from other projects, but because there is no corresponding binary yet (probably), skip binary download. For example from inside cypress-example-kitchensink folder
npm i ~/git/cypress/cli/build/cypress-3.1.5.tgz --ignore-scripts
Which installs the tgz file we have just built from folder ~/git/cypress/cli/build.