Cypress has a great test runner that works really well in the local environment. Although, I haven't found a way to run something like cypress open
for a remote environment. So is that a way to do this instead of using cypress run
?
Asked
Active
Viewed 2,422 times
5

Leandro Lima
- 121
- 1
- 8
-
What are you trying to accomplish? You could bundle it in a Docker container that you deploy remotely to run your E2E suite. – KiaiFighter Feb 18 '20 at 17:45
-
2I have a development env running remotely, and I would like to know if there is a way to run my tests with the Test Runner from this env – Leandro Lima Feb 18 '20 at 17:53
-
As I'm looking for something similar, could you specify whether either cypress or the browser is running on the remote? If you want to connect to a remote browser, possibly [this feature request](https://github.com/cypress-io/cypress/issues/5984) indicates that it is currently not supported. I myself was looking for the other way around as I can only run Cypress on a remote machine but still would like to see the test panel in my local browser somehow. – gekkedev Mar 18 '21 at 11:11
1 Answers
1
If you run a local Xserver, you can export the DISPLAY from the remote machine to your local. In my experience it's not very fast, but it's usable.
This is blog post is specific to WSL, but concept (and most of the commands) are the same https://dev.to/nickymeuleman/using-graphical-user-interfaces-like-cypress-in-wsl2-249j

olore
- 4,687
- 3
- 28
- 40