top of page

Basic Terminal commands in Cypress

Updated: Apr 20, 2021

Here we are going to cover most frequently used terminal commands.

1. The first command we gonna use in to open the Cypress Test Runner,

npx cypress open

2. To run all the tests in integration folder

npx cypress run

3. To run specific test under integration folder

npx cypress run --spec "path of your test"

4. To run the test with browser from terminal

npx cypress run --spec "/path/test.js" --headed

5. To run the test headless

npx cypress run --spec "/path/test.js" --headless

6. To run the test in specified browser

npx cypress run --spec "/path/test.js" --browser "chrome"

7. To learn all run commands / Help

npx cypress run --help

8. To have the information of browsers installed

npx cypress info

9. To verify whether cypress installed correctly or not

npx cypress verify

10. To know the version of cypress

npx cypress version

90 views0 comments

Recent Posts

See All

Smallest String With A Given Numeric Value

The numeric value of a lowercase character is defined as its position (1-indexed) in the alphabet, so the numeric value of a is 1, the numeric value of b is 2, the numeric value of c is 3, and so on.


bottom of page