grunt: Add Karma task for automated QUnit testing in browsers
authorTimo Tijhof <krinklemail@gmail.com>
Wed, 10 Dec 2014 05:58:31 +0000 (05:58 +0000)
committerKrinkle <krinklemail@gmail.com>
Mon, 5 Jan 2015 18:00:13 +0000 (18:00 +0000)
commit945c1efe37972025ad98dfb0662f29a266a6dae7
tree82bef64f1037fb2c3f7056d0a15180989717741c
parentba50b32556fa1f2983c80cc6c06b5908f46f7cf4
grunt: Add Karma task for automated QUnit testing in browsers

To use, ensure npm modules are up to date by running 'npm install'
in tests/frontend. Then run 'grunt qunit' to run it in Chrome.

To run it in both Firefox and Chrome (locally), run

 grunt karma:more

Moved fixture from hardcoded HTML to the testrunner so that our
tests don't depend on arbitrary HTML and thus also pass in browser
contexts where the page only loads QUnit + test suites (e.g. Karma).

Change-Id: I4e96da137340a28789b38940e75d4b6b8bc5d76a
includes/specials/SpecialJavaScriptTest.php
tests/frontend/Gruntfile.js
tests/frontend/package.json
tests/qunit/data/testrunner.js