1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- 'use strict';
- module.exports = function(grunt) {
- grunt.loadNpmTasks('grunt-mocha-test');
- grunt.loadNpmTasks('grunt-contrib-clean');
- grunt.loadNpmTasks('grunt-contrib-jshint');
- var src = ['test/manager/taskManager.js', 'test/filters/*.js',
- 'test/remote/*.js', 'test/service/*.js', 'test/modules/*.js', 'test/util/*.js', 'test/*.js'];
- // Project configuration.
- grunt.initConfig({
- mochaTest: {
- test: {
- options: {
- reporter: 'spec',
- timeout: 5000,
- require: 'coverage/blanket'
- },
- src: src
- },
- coverage: {
- options: {
- reporter: 'html-cov',
- quiet: true,
- captureFile: 'coverage.html'
- },
- src: src
- }
- },
- clean: {
- "coverage.html" : {
- src: ['coverage.html']
- }
- },
- jshint: {
- all: ['lib/*']
- }
- });
- // Default task.
- grunt.registerTask('default', ['clean', 'mochaTest', 'jshint']);
- };
|