Jenkins + Jasmine

Jenkins runs our unit tests on each check-in...

grunt-contrib-jasmine

Install with:


		$ npm install grunt-contrib-jasmine --save-dev
		

Enable in Gruntfile with:


		grunt.loadNpmTasks('grunt-contrib-jasmine');
		

Gruntfile.js


module.exports = function(grunt) {
  grunt.initConfig({
    jasmine: {
      src: 'src/**/*.js',
      options: {
        specs: 'spec/**/*.js'
      }
    }
  });
  grunt.loadNpmTasks('grunt-contrib-jasmine');
  grunt.registerTask('test', ['jasmine']);
}
		

Run your tests


		$ grunt test
		

Running "jasmine:examples" (jasmine) task
Testing jasmine specs via phantom
...
3 specs in 0.001s.
>> 0 failures

Done, without errors.
		

grunt-regarde

Install with:


		$ npm install grunt-regarde --save-dev
		

Enable in Gruntfile with:


		grunt.loadNpmTasks('grunt-regarde');
		

grunt-notify

Install with:


		$ npm install grunt-notify --save-dev
		

Enable in Gruntfile with:


		grunt.loadNpmTasks('grunt-notify');