Cypress Open 1
Cypress Open 1
Using npx
Note: npx is included with npm > v5.2 or can be installed separately.
Or by using yarn
./node_modules/.bin/cypress open
{
"scripts": {
"cypress:open": "cypress open"
}
}
Now you can invoke the command from your project root like so:
CLI tools
By installing Cypress through npm you also get access to many other CLI commands.
On top of that, Cypress is also a fully baked JavaScript library you can import
into your Node scripts.
The Launchpad
The Launchpad window
On opening Cypress, your testing journey begins with the Launchpad. Its job is to
guide you through the decisions and configuration tasks you need to complete before
you start writing your first test.
If this is your first time using Cypress it will take you through the following
steps in order.
For more background on this critical decision, read Testing Types. Alternatively,
if you're not sure which type you want and just want to get on with your testing
journey, just choose E2E for now - you can always change this later!
Quick Configuration
The Launchpad scaffolded files list
On the next step, the Launchpad will scaffold out a set of configuration files
appropriate to your chosen testing type, and the changes will be listed for you to
review. For more information about the generated config check out the Cypress
configuration reference, or you can just scroll down and hit "Continue".