pom-version-changer
Version:
Maven pom.xml versions manager. Change version of pom, parent version and dependencies.
32 lines (28 loc) • 778 B
JavaScript
module.exports = function(grunt) {
// Add the grunt-mocha-test tasks.
grunt.loadNpmTasks('grunt-mocha-test');
grunt.file.setBase('tests');
grunt.initConfig({
// Configure a mochaTest task
mochaTest: {
test: {
options: {
reporter: 'spec'
},
src: ['*.js']
},
coverage: {
options: {
reporter: 'html-cov',
// use the quiet flag to suppress the mocha console output
quiet: true,
// specify a destination file to capture the mocha
// output (the quiet option does not suppress this)
captureFile: 'coverage.html'
},
src: ['*.js']
}
}
});
grunt.registerTask('default', 'mochaTest');
};