Thursday, 22 August 2013

grunt not running QUnit tests on phantom

grunt not running QUnit tests on phantom

pI've got a a href=https://github.com/tkoomzaaskz/tree
rel=nofollowrepository/a
which is integrated with travis. I've got QUnit
tests which I'd like to run from grunt/node server side and AMD
(requirejs). This is the source of my AMD init.js:/p precode(function () {
require.config({ baseUrl: ../src }); require([../test/suites/basic,
'../test/qunit-extend', 'qunit' ], function(BasicTests) {
QUnit.config.autoload = false; QUnit.config.autostart = false;
BasicTests.run(); QUnit.load(); QUnit.start(); }); }()); /code/pre pWhen I
run those QUnit tests within my browser - everything works perfectly. But
when I try to run them from grunt level (server-side using phantomjs), a
href=https://travis-ci.org/tkoomzaaskz/tree/jobs/10516563 rel=nofollowit
fails/a. I get:/p precodeRunning qunit:all (qunit) task Testing
test/index.html Warning: PhantomJS timed out, possibly due to a missing
QUnit start() call. Use --force to continue. /code/pre pall the time. I
was trying to do evetyrhing the same way as it's done in a
href=http://www.nathandavison.com/posts/view/17/using-qunit-and-requirejs-to-build-modular-unit-tests
rel=nofollowthis
tutorial/a, but still I get wrong results (phantom being
hanged instead serving QUnit tests).../p

No comments:

Post a Comment