David Froger
David Froger

Reputation: 665

cypress run: keep test runner open

How can I run my Cypress tests using:

cypress run --headed

but keep the test runner open at the end of the tests, like it is using the Cypress Test Runner in interactive mode (cypress open)?

I prefer cypress run --headed over cypress open, which require user interaction to launch the tests.

(The context in running the Cypress tests in continuous integration, but with xvfb and a vnc server, so the test runner can still be used once the tests are complete).

Upvotes: 9

Views: 4587

Answers (1)

kuceb
kuceb

Reputation: 18043

You should be able to run:
cypress run --headed --no-exit
As of version 3.0.2, the next patch release. See the PR here

Upvotes: 15

Related Questions