QUnit tests do not work on Travis CI (works on phantomjs with grunt.js)

We have implemented the CI system with Travis CI in our open source JavaScript enchant.js project. https://github.com/wise9/enchant.js

We like the qunit tests and we run them with grunt.js (npm), but it does not work on Travis CI with this error:

<WARN> PhantomJS timed out, possibly due to a missing QUnit start() call. Use --force to continue. </WARN> 

The full error message is here: https://travis-ci.org/wise9/enchant.js/builds/4016842

The strange thing is, every time I run the grunt command, a timeout error occurs in different tests, and sometimes all tests pass (in rare probability)

.travis.yml

 language: node_js node_js: - 0.8 before_install: - phantomjs --version 

package.json

 { "name": "enchant.js", "version": "0.6.2", "engines": { "node": ">=0.8" }, "scripts": { "test": "grunt default --verbose" }, "devDependencies": { "grunt": "0.3.17", "grunt-exec": "0.3.0" } } 

Does anyone know how to solve this problem?

+7
source share
1 answer

I have the same problem and it caused my fact that QUnit asyncTest never returns when starting in PhantomJS.

We solved the problem by updating grunt and grunt-qunit to v0.4. We refused to understand the specific problem, but it seems that the error you found may be

0
source

All Articles