Cypress · Junior · Question 3 of 75

Which command runs all Cypress tests headlessly, e.g. in CI?

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.

Further reading

Problem with a question

Cypress · Junior · question 3

Test yourself

Take the Cypress · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz