Cypress: Feature Request - Support directly testing Electron apps

Created on 1 Jul 2018  路  7Comments  路  Source: cypress-io/cypress

It would be great to be able to use Cypress to do full e2e testing of Electron apps.

We currently use Spectron but it uses webdriver so it is obviously rather unreliable and also requires updated Chromedriver for every new version of Electron.

electron proposal 馃挕 feature

Most helpful comment

Would be great if there was more documentation for this or an example app. Spectron is definitely lacking and not very fun to work with.

All 7 comments

@timfish Hey, just wanted to make sure you saw this FAQ. I know it's not, "testing an Electron app out of the box", but wanted to mention it here. https://on.cypress.io/using-cypress-faq#Can-I-test-my-Electron-app

Would be great if there was more documentation for this or an example app. Spectron is definitely lacking and not very fun to work with.

I have looked at the Cypress desktop app that uses Cypress to test the app UI in a browser, but we currently use Spectron to do a lot more than just UI interactions.

As well as testing the UI, our integration test suite runs against packaged productions builds and checks interactions with the OS which just wouldn't work in a browser. We check that various state is persisted correctly between app restarts, file watching works as expected and a load of other things like that.

These tests drastically reduce the risk when upgrading Electron or other dependencies so moving to UI only tests would feel like a big step down.

Any news on this?

@jennifer-shehane
This would actually an important feature. There are many electron apps out there.
Would it be possible to publish at least a tutorial on how to do this? Some info / help would be appreciated.

Hi everyone, we've begun work on supporting running tests directly in an Electron application.

We often create new issues to track the progress of the more technical work involved while implementing, so if you want to follow the details of that - you can follow the issue here: https://github.com/cypress-io/cypress/issues/4964

Otherwise, just continue to follow this issue. It will be closed and updated whenever the feature is ready for release.

Hi everyone, we've begun work on supporting running tests directly in an Electron application.

We often create new issues to track the progress of the more technical work involved while implementing, so if you want to follow the details of that - you can follow the issue here: #4964

Otherwise, just continue to follow this issue. It will be closed and updated whenever the feature is ready for release.

Hi @jennifer-shehane,

Will this also work for CEF applications or is there a separate issue / plans for that integration?

Thanks,
Eoin.

Was this page helpful?
0 / 5 - 0 ratings