Closed SimplyAhmazing closed 7 years ago
I figured out my error. It was due to the fact that I was attempting to write to a log file but was doing so outside of electron ready
and therefore the file did not exist. This certain log file existed in our local dev environments so spectron was able to start electron tests just fine..
I've set up Spectron to test our Electron app and have been able to get the tests to pass on my machine and a coworkers machine smoothly. However I'm unable to get it to work on AppVeyor or Travis. The specific error I get is,
I got this error locally and was able to work around it by increasing the timeout time on my Mocha test, however this hasn't worked for my CI tests...
I increased the test time on my AppVeyor build to 100 minutes and got this error,
I suppose it's this error that makes the Spectron test fail,
After googling this error it seems to have something to do with WebDriverIO. I haven't yet been able to determine more on why this error is happening. Maybe I'm not be installing the proper dependencies for Spectron on AppVeyor/Travis -- I feel that this is unlikely because a coworker was able to pull my branch,
npm i
and get everything running fine...I did set up AppVeyor build to use
os: unstable
and my Travis to useos: - osx
...Not sure if anyone is familiar with what's causing this failure on Travis/AppVeyor?
Thanks
Relevant build logs,