I have a set of mocha tests that launch Spectron to do end-to-end testing on an Electron application.
When I try to run the tests through npm run
, they just time out and fail. It seems that the application isn't launching. There is a Run Functional Tests
build step template in VSTS, but that's for an actual test DLL. Is there something similar for Javascript end-to-end testing?
The Hosted Agent is running as the service, however launch Spectron to do test with Electron app need to interact with window and the test is running on build agent machine. So you need to setup a on premise build agent to do that test (works fine for me with this test sample. Build steps: npm install, npm install test)
More information to setup on premise build agent, you can refer to this article.