Darksymphony
Darksymphony

Reputation: 2683

Cypress run in command line with multiple config params

I am trying to pass multiple config params in Cypress via command line (e.g. I want to disable video and screenshots), but want to do it only via command line:

cypress run --config video=false

This works, but how can I also pass screenshotOnRunFailure=false?

cypress run --config video=false --config screenshotOnRunFailure=false

This will ignore the second config.

Upvotes: 2

Views: 631

Answers (1)

Alapan Das
Alapan Das

Reputation: 18634

You can use comma to separate the two

cypress run --config video=false,screenshotOnRunFailure=false

Upvotes: 3

Related Questions