ErgoServ's Starter Kit for Cypress End-to-End testing.
- Download and extract Starter Kit https://github.com/ergoserv/cypress-starter-kit
- Copy Starter Kit files to the needed folder (including hidden files like
.gitignore!) - Update
README.mdfile (removeCypress Starter Kitblock, rename project) - Setup and run
Cypress testing suite for ProjectName project.
-
Install Node
-
Install https://dotenvx.com/
-
Run setup script
bin/setup- Customize
cypress.env.jsonand/config/targets/.env.*as needed.
cypress.config.js- main config. Sectionenvcontains all env vars with default values.cypress.env.json- env config for local development and run on local target.config/targets/.env.*- testing target configs.
bin/run
npx cypress run
bin/open
npx cypress openbin/run-staging
bin/run-production
bin/open-staging
bin/open-production
- Add new env vars to
cypress.config.jswith default values for the reference. - Always run code style check:
bin/eslint