This project offers a single shell script that quickly initializes a Cypress testing automation project from scratch.
Note: This script only works on Unix-based operating systems, such as Linux and macOS.
- Download the
cy.sh
file and move it to your root directory - In the root directory, run
./cy.sh name-of-the-project-you-want-to-create-here
to create a Cypress project from scratch (you might have to first give execution permission to thecy.sh
file)
- 2.1. Alternatively, you can run
./cy.sh name-of-your-project-here x.x.x
if you want to install a specific version of Cypress, other than its latest version.
- Close Cypress and access the newly created project (e.g.,
cd name-of-your-project-here/
) - Open it on your favorite IDE and start writing your Cypress tests! ๐
- It creates a project directory and accesses it
- Then, it initialize git and .gitignore
- After that, it creates a readme file to be defined
- It then initializes NPM
- It installs Cypress (if a version is provided, it will install it; otherwise, the latest version is installed)
- It creates cypress.env and cypress.env.example files defaulting them to empty objects
- Finally, it opens Cypress for the first time so that it creates its default structure.
If you liked this project, consider leaving a โญ.
Created with ๐ค by Walmyr.