Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

cypress run: keep test runner open

Tags:

cypress

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).

like image 923
David Froger Avatar asked May 16 '18 07:05

David Froger


1 Answers

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

like image 161
bkucera Avatar answered Oct 11 '22 02:10

bkucera