grunt.js

  • Download Gist
A sample Grunt Task file using Grunt-SauceLabs-QUnit
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
/* global module:false */
module.exports = function(grunt){
grunt.initConfig({
pkg: '<json:package.json>',
meta: {
banner: '/*! <%= pkg.name %> */'
},
server: {
base: '.',
port: 9999
},
qunit: {
all: ['http://127.0.0.1:9999/index.html']
},
'saucelabs-qunit': {
all: {
username: 'indexeddbshim',
key: null,
urls: ['http://127.0.0.1:9999/index.html'],
tunnelTimeout: 5,
browsers: [{
browserName: 'opera'
}]
}
}
});
grunt.loadNpmTasks('grunt-saucelabs-qunit');
grunt.registerTask('test', 'server qunit saucelabs-qunit');
grunt.registerTask('default', 'test');
};

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.