Cypress automation framework skeleton with Typescript + ESlint + Prettier + Docker/Docker-Compose.
- NodeJs
- Git
- Docker
- Create file
cypress-secrets.env
- Add to the file
CYPRESS_RECORD_KEY=
CYPRESS_PROJECT_ID=
- Change the corresponding values, if you want to record the test runs to the Cypress Cloud
-
Run
docker-compose -f docker-compose.dev.yml up --remove-orphans -d --build --force-recreate
-
Install Microsoft Visual Studio Code IDE. Ignore this if already installed.
-
Install Nodejs on your system. Ignore this if already installed.
-
Install Git on your system. Ignore this if already installed.
-
git clone [email protected]:Thomas-Hoffmann2/cypress-typescript-template.git
or downloadmaster
branch zip and extract code. -
Open project folder with VSCode.
-
Run
npm install
command to restore all packages. -
Run
npm run cypress:test
command to run test.
- Install Microsoft Visual Studio Code IDE. Ignore this if already installed.
- Install Nodejs on your system. Ignore this if already installed.
- Install Git on your system. Ignore this if already installed.
- Open project folder with VSCode.
- Run
npm init -y
command to initilized project. - Run
npm install cypress --save-dev
command to install cypress. - Run
npm install typescript --save-dev
command to install typescript. - Run
npx tsc --init --types cypress --lib dom,es6
command to configure typescript. - Run
npx cypress open
command to run test.