Cypress · Junior · Question 3 of 75
Which command runs all Cypress tests headlessly, e.g. in CI?
- 1
npx cypress open --ci - 2
npx cypress test --all - 3
npx cypress run
Show the answer
Correct answer: npx cypress run
Explanation
cypress run runs every spec in the terminal, records failure screenshots, and returns a non-zero exit code on failures.