Skip to content

Instantly share code, notes, and snippets.

@blakehaswell
Created January 21, 2013 10:05
Show Gist options
  • Save blakehaswell/4585011 to your computer and use it in GitHub Desktop.
Save blakehaswell/4585011 to your computer and use it in GitHub Desktop.
Gruntfile for running automated tests using Jasmine.
module.exports = function (grunt) {
grunt.initConfig({
connect: {
jasmine: {
options: {
hostname: 'localhost',
port: 9001
}
}
},
jasmine: {
all: {
src: 'public/javascripts/app/**/*.js',
options: {
specs: 'public/javascripts/test/specs/*Spec.js',
helpers: 'public/javascripts/test/helpers/*Helper.js',
host: 'http://localhost:9001/'
}
}
}
});
grunt.loadNpmTasks('grunt-contrib-jasmine');
grunt.loadNpmTasks('grunt-contrib-connect');
grunt.registerTask('test', ['connect:jasmine', 'jasmine']);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment