Cypress Quickstart
-
Don't have Cypress tests but want to try? Follow the steps below to use the Cypress Demo Repo to build a sample project structure, working configuration file, and sample Cypress test — get up and running in less than 10 minutes! -
Already running Cypress? Let saucectl run your tests in the Sauce Labs Cloud, where you have access to thousands of OS/browser combinations and Sauce Labs analytics.
What You'll Need
-
A Sauce Labs account ( Log in or sign up for a free trial license ) -
Your Sauce Labs Username and Access Key -
Node.js to use the NPM package manager -
A GitHub account -
Git
Step 1: Install saucectl
npm install -g saucectl
Step 2: Link Your Sauce Labs Account
echo $SAUCE_USERNAME
echo $SAUCE_ACCESS_KEY
-
Run the configure command: saucectl configure -
Enter your Sauce Labs Username and Access Key at the prompts.
Step 3: Set up Your Cypress Project
-
HTTPS -
SSH
git clone https://github.com/saucelabs/saucectl-cypress-example.git
git clone git@github.com :saucelabs/saucectl-cypress-example.git
Step 4: Run Tests
cd saucectl-cypress-example/v1
saucectl run