Open imlucas opened 6 years ago
To add to this, I just spent so much time trying to debug why my, while working fine on OSX, on Windows my spectron tests were timing out on the beforeEach hook (where I was calling app.start()
on the spectron Application instance). Turns out it works just fine with mocha but not with electron-mocha, which we're using for unit tests...
@lottec hmm. which version of electron-mocha are you on? 6.0.x
works for me.
I have this all working locally... But in our CI running under cygwin... no such luck...
There are several issues open around spectron on windows oddities; chromedriver timing out, app failed to initialize and more (examples below). Having spent the past week digging around and fixing this for MongoDB Compass's testing, I found and fixed an issue I hadn't seen reported elsewhere:
The command line is too long.
buried in the chromedriver logs causingapp.start()
to hang or fail with various timeout errors. The full details are in mongodb-js/hadron-spectron#3 but the tldr is:ERROR
,SEVERE
,WARNING
,command line is too long
env: process.env
to theApplication
constructor... this is what was causing the silent, fatalcommand line is too long
for me@MarshallOfSound I'd send a PR for this but wasn't quite sure where it should go.
README
perhaps? I've just noticed a ton of these "Won't work on Windows issues" and wanted to help the reporters get unblocked.219 #144 probably others?