Tests fail or hang randomly from travis with PhantomJS
I run my tests with testem and PhantomJS, they all transfer to my local machine, but when I run them on travis, they randomly crash or freeze. It doesn't look like some specific tests fail, some pass, randomsome fail, I don't know what is going on. My project is available on github https://github.com/eguneys/marbles-site
Edit
I optimized it a bit, fixed the freeze issue, now the problem is that it didn't pass the first integration test. I added App.reset()
before the first integration test. And it passes now. I've had problems with App.reset()
before,
Eric Brin suggested using App.reset()
in a method setup
, not teardown
so that you can see the last state of the application. But this leads to test failures, I cannot solve the mystery App.reset()
and am afraid that the tests will not work at any time. And yet they are passing at the moment.
source to share