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.md
file (removeCypress Starter Kit
block, 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.json
and/config/targets/.env.*
as needed.
cypress.config.js
- main config. Sectionenv
contains 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 open
bin/run-staging
bin/run-production
bin/open-staging
bin/open-production
- Add new env vars to
cypress.config.js
with default values for the reference. - Always run code style check:
bin/eslint