Alexander Tunick
Alexander Tunick

Reputation: 525

Run Cypress tests in headless Chrome

Trying to launch cypress tests with

--headless --browser chrome

how it's described in the official documentation here

But for some reason --headless parameter is not recognizable and I'm getting

error: unknown option: --headless

Can't get what's wrong, looks like everything is pretty straightforward but can't get it working.

My application parameters:

./node_modules/.bin/cypress run --headless --browser chrome --env cfg=dev

Upvotes: 0

Views: 1828

Answers (1)

aks
aks

Reputation: 11

Try this once,

./node_modules/.bin/cypress run -- --headless --browser chrome --env cfg=dev

Upvotes: 1

Related Questions