Install with:
$ npm install grunt-contrib-jasmine --save-dev
Enable in Gruntfile with:
grunt.loadNpmTasks('grunt-contrib-jasmine');
module.exports = function(grunt) {
grunt.initConfig({
jasmine: {
src: 'src/**/*.js',
options: {
specs: 'spec/**/*.js'
}
}
});
grunt.loadNpmTasks('grunt-contrib-jasmine');
grunt.registerTask('test', ['jasmine']);
}
$ grunt test
Running "jasmine:examples" (jasmine) task
Testing jasmine specs via phantom
...
3 specs in 0.001s.
>> 0 failures
Done, without errors.
Install with:
$ npm install grunt-regarde --save-dev
Enable in Gruntfile with:
grunt.loadNpmTasks('grunt-regarde');
Install with:
$ npm install grunt-notify --save-dev
Enable in Gruntfile with:
grunt.loadNpmTasks('grunt-notify');