cypress base project Last update : 07/11/2023
=======
This project uses Typescript and Cypress version 12.7
.
npm install
to install the dependenciesnpx cypress open
to open the app
npm init -y
to start a npm packagenpm install [email protected]
to install cypress specific version 10.6.0export KEY_NAME=VALUE
set up an env variable in MACset KEY_NAME=VALUE
to set up an env variable in Windows =======
-
docker run -it -v $PWD:/e2e -w /e2e cypress/included:10.6.0
-
docker run -it -v ${PWD}:/e2e -w /e2e cypress/included:10.6.0
it
= interactive terminal-v ${PWD}:/e2e
= map current folder to /e2e in the container-w /e2e
= set working directory to e2e-e CYPRESS_baseUrl=...
= pass environment variable CYPRESS_baseUrlcypress/included:9.2.0
= name of the Docker image with tag
npm install -g allure-commandline --save-dev
to install globally.npm install allure-commandline --save-dev
to install locally.allure generate
to generate the html report.allure serve
to generate and serve the html report.allure open
to serve the html report.
Blogs
- Mocha is the testrunner for Cypress.
- Node.js 12 or 14 and above is required.
======= ¿Do you want to get in touch? Let's talk here.