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.

+3


source to share


1 answer


Go to your package.json file and modify the scripts.test file as follows:

"test": "testem ci --launch node,PhantomJS"

      



I'm not sure what is the reason for your tests failing, but if it is with integration it should help.

-1


source







All Articles