1 /*global config:true, task:true*/
2 module.exports = function( grunt ) {
5 pkg: '<json:package.json>',
7 // TODO include 'test/logs.html' as well
8 qunit: 'test/index.html',
10 'addons/canvas/canvas.html',
11 'addons/close-enough/close-enough.html',
12 'addons/composite/composite-demo-test.html'
16 qunit: 'qunit/qunit.js',
17 addons: 'addons/**/*.js',
19 // TODO need to figure out which warnings to fix and which to disable
20 // tests: 'test/test.js'
77 grunt.registerTask( "testswarm", function( commit, configFile ) {
78 var testswarm = require( "testswarm" ),
79 config = grunt.file.readJSON( configFile );
81 url: "http://swarm.jquery.org/",
85 authUsername: "qunit",
86 authToken: config.qunit.authToken,
87 jobName: 'QUnit commit #<a href="https://github.com/jquery/qunit/commit/' + commit + '">' + commit + '</a>',
89 "runNames[]": "QUnit",
90 "runUrls[]": "http://swarm.jquery.org/git/qunit/" + commit + "/test/index.html",
91 "browserSets[]": ["popular"]
95 grunt.registerTask('default', 'lint qunit');