Skip to content

Instantly share code, notes, and snippets.

@nycdotnet
Created July 25, 2016 20:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nycdotnet/02126ae3d1c143a87d9c057f7c49dc11 to your computer and use it in GitHub Desktop.
Save nycdotnet/02126ae3d1c143a87d9c057f7c49dc11 to your computer and use it in GitHub Desktop.
Run QUnit from command-line with Grunt
module.exports = function (grunt) {
grunt.initConfig({
qunit: {
default: {
options: {
urls: ["http://localhost:8000/tests/tests.html"]
}
}
},
connect: {
default: {
options: {
port: 8000,
base: "."
}
}
}
});
grunt.loadNpmTasks("grunt-contrib-qunit");
grunt.loadNpmTasks("grunt-contrib-connect");
grunt.registerTask("default", ["connect", "qunit"]);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment