Created
January 21, 2013 10:05
-
-
Save blakehaswell/4585011 to your computer and use it in GitHub Desktop.
Gruntfile for running automated tests using Jasmine.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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