Closed tomwayson closed 8 years ago
Sorry, I got frustrated towards the end of last night's debugging session.
In summary, doesn't look like there's anything wrong w/ the intern config or tests. Looks like it's just a matter of how selenium is calling chromedriver (maybe just on Windows).
A few things to try:
Another idea is to scrap selenium and just use the chromedriver. As I said above, I was able to run that from the command line and have the tests successfully run. I didn't look into calling it from grunt.
I'm not going to look into this any further. I gave up on the Intern a long time ago. Maybe @gbochenek or @gavinr can look into the config they use on their Intern projects to see how it's done there.
e2e isn't working on Mac either. I don't know if it's a selenium/chromedriver version issue or what. This used to work out of the box. I'll test on Linux.
I had been meaning to update to this module https://github.com/zs-zs/grunt-selenium-standalone
Tried it and same issue. I'll keep testing
So as-is, if I run the command-line selenium test first, then shut it down, I can run grunt e2e
, and it works. This is on Linux.
Local Selenium testing seems finicky at best here. If I can fix it, I will, but we should add a note that Saucelabs is really the preferred way of cross-browser testing, because you can only test what you have installed as it is.
"finicky" is an understatement for the experience on Windows :stuck_out_tongue_winking_eye:
I've got a local fix that takes selenium out of the picture and just uses chromedriver and works reliably on windows (and I suspect should have no prob on other platforms). It seems reasonable to me to advise people to only test locally against chrome and to use something like SauceLabs via CI if they need to test in other browsers (which is really the only sane way to do so). Seems like SitePen agrees.
I've also excluded deps like esri, dojo, etc from code coverage reporting and that speeds up test runs significantly.
PR to come later this weekend unless you don't agree that it's sufficient to test locally only against chrome. I'll also include a note in the README w/ the above into. Let me know if that sounds good to you.
Sounds awesome! Go for it.
On Sat, Mar 26, 2016, 8:45 AM Tom Wayson notifications@github.com wrote:
"finicky" is an understatement for the experience on Windows [image: :stuck_out_tongue_winking_eye:]
I've got a local fix that takes selenium out of the picture and just uses chromedriver and works reliably on windows (and I suspect should have no prob on other platforms). It seems reasonable to me to advise people to only test locally against chrome and to use something like SauceLabs via CI if they need to test in other browsers (which is really the only sane way to do so). Seems like SitePen agrees https://theintern.github.io/intern/#local-selenium.
I've also excluded deps like esri, dojo, etc from code coverage reporting and that speeds up test runs significantly.
PR to come later this weekend unless you don't agree that it's sufficient to test locally only against chrome. I'll also include a note in the README w/ the above into. Let me know if that sounds good to you.
— You are receiving this because you commented. Reply to this email directly or view it on GitHub https://github.com/odoe/generator-arcgis-js-app/issues/12#issuecomment-201864929
Like #11 , after a fresh install and successfully running
npm start
I then run:
npm test
Selenium vomits out into the console, but it's all cleared before I can tell if it started successfully or not. Then I see the following:
It just kind of hangs and flickers. Same happens when running
grunt e2e
directly.I can successfully run selenium from the command line w/ the same args:
Then I get the following when trying to run
grunt intern
from another terminal window I see the following in the selenium window:Looks like selenium is having trouble launching chromedriver.
I can get the tests to run using chromedriver w/o selenium by running the following in a git-bash window and then running
grunt intern
in another window:However, to run in normal windows command window I have to run:
At this point, I've lost too many hours of my life f&*^ing around w/ selenium and browser drivers to try and debug Intern problems. I don't see how anyone can possibly use it. Maybe it works great on a Mac.