@caw-studios/cypressinstaller
v1.0.7
Published
A package that installs cypress into your Angular, React and Vue projects
Downloads
21
Readme
@caw-studios/cypressinstaller
@caw-studios/cypressinstaller is a command line tool that installs Cypress and other dependencies for your front-end framework (Angular, React and vue js 3).
Installation
Use the package manager npm to install @caw-studios/cypressinstaller.
npm i -D @caw-studios/cypressinstaller
Usage
npx @caw-studios/cypressinstaller
This command line tool will:
- Prompts to install cypress ,its dependencies and add necessary files for cypress.
- Prompts to uninstall protractor (Angular).
- Prompts to install concurrently.
- Prompts to install component testing (React).
- Prompts to install code coverage.
- Prompts to install Mocha Report.
Scripts
- Opens Cypress test runner
npm run cy:open
- Executes tests in headless mode
npm run cy:run
- Executes component tests in headless mode
npm run ct:run
- Opens Cypress test runner for Component test
npm run ct:open
- To generate a HTML report after you run the test. Run
npm run generate:html:report
- To remove mocha HTML report . Run
npm run remove-reports
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.