Generates test runners for AMD-based projects, with QUnit and jasmine support
Generates test runners for AMD-based projects, and that's it! Does not generate failing test cases or run tests. You can use the following projects to run the test runners generated by grunt-amd-test:
This plugin requires Grunt
From the same directory as your Gruntfile, run
npm install grunt-amd-test
Then add the following line to your Gruntfile:
You can verify that the task is available by running
grunt --help and
checking that "amd-test" is present under "Available tasks".
grunt-amd-test reads two sections of your config:
amd-test can contain these properties:
'amd-test'://generate a qunit runner.html or a jasmine runner.htmlmode: 'qunit'//mode: 'jasmine',//Grunt files configuration object containing all unit tests to be included//(more: )files: 'test/unit/*.js'
requirejs is a standard r.js configuration
packages (all optional) to
transform file names to AMD module names.
Once these options are in place,
grunt amd-test will run amd-test.
Released under the MIT License.