1 /*global config:true, task:true*/
2 module.exports = function( grunt ) {
4 grunt.loadNpmTasks( "grunt-git-authors" );
7 pkg: '<json:package.json>',
9 // TODO include 'test/logs.html' as well
10 qunit: 'test/index.html',
12 'addons/canvas/canvas.html',
13 'addons/close-enough/close-enough.html',
14 'addons/composite/composite-demo-test.html'
18 qunit: 'qunit/qunit.js',
19 // addons: 'addons/**/*.js',
21 // TODO need to figure out which warnings to fix and which to disable
22 // tests: 'test/test.js'
80 grunt.registerTask( "testswarm", function( commit, configFile ) {
81 var testswarm = require( "testswarm" ),
82 config = grunt.file.readJSON( configFile ).qunit;
88 authUsername: "qunit",
89 authToken: config.authToken,
90 jobName: 'QUnit commit #<a href="https://github.com/jquery/qunit/commit/' + commit + '">' + commit.substr( 0, 10 ) + '</a>',
91 runMax: config.runMax,
92 "runNames[]": "QUnit",
93 "runUrls[]": config.testUrl + commit + "/test/index.html",
94 "browserSets[]": ["popular"]
98 grunt.registerTask('default', 'lint qunit');