user1506145
user1506145

Reputation: 5296

Run cypress commands interactively

Is there a possibility to open a browser and run cypress test commands interactively? Similar to using the scripts tab in chrome devtools. It takes too long time to start the browser run the tests each time.

Upvotes: 5

Views: 1108

Answers (1)

PravyNandas
PravyNandas

Reputation: 677

I understand the pain. But to my best knowledge the auto-scan feature of cypress takes care of 're-run' of the tests as you update them. In other words, you launch the test only once using cypress open command and every time you update a test or tests, cypress UI will auto-refresh to fetch latest test code. If you changes made in a file that is being executed, then the active run will re-run automatically.

This feature is enabled by default, but for some reason is not working, check your env.json file and see below line points to true. For further reading refer cypress documentation

{
   watchForFileChanges: true
}

Coming to the injecting code from browser part, I don't think that is an option with cypress.

Upvotes: 0

Related Questions