3
votes

When I run cypress open, the Cypress Test Runner will open + browser and tests are rerun on every file change.

Is it possible to rerun test automatically but in headless mode?

1
I don't think file watching capabilities gets applied on headless mode of Cypress run. I just gave a try with npx cypress run --no-exit; but, didn't work on file change.Kondasamy Jayaraman

1 Answers

2
votes

No, it's not possible.

Extracted directly from the Cypress docs

Nothing is watched during cypress run. The watchForFileChanges property is only in effect when running Cypress using cypress open.