nathanboktae / mocha-phantomjs

:coffee: :ghost: Run client-side mocha tests in the command line through phantomjs
MIT License
954 stars 112 forks source link

Tests failing in mocha-phantomjs, but not mocha #181

Closed callumacrae closed 9 years ago

callumacrae commented 9 years ago

https://travis-ci.org/Lostmyname/monkey/jobs/56906082

My tests are consistently failing in mocha-phantomjs, but they work fine when ran through the browser. How would I work out what's causing them to fail?

nathanboktae commented 9 years ago

I assume running locally produces the same result? Try phantomjs --remote I debugger sport=9000 lib/mocha-phantomjs.coffee tests.html spec for debugging.

Phantomjs definitely has its quircks. And by quircks I mean big bugs. If you are doing heavy DOM manipulation and verification, or relying on more recent DOM functionality, you might not want to use mocha-phantomjs. Sauce labs is really awesome if you haven't seen them.

nathanboktae commented 9 years ago

Closing for now. Reopen if you have more information that it is not phantomjs specific.