Skip to content

Commit

Permalink
Added a mocha test task to the default grunt task
Browse files Browse the repository at this point in the history
  • Loading branch information
ewandennis committed Feb 23, 2016
1 parent 359a479 commit 654d069
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,15 @@ module.exports = function(grunt) {
}
},
shell: {
test: {
coverage: {
command : '<%= config.binPath %>/istanbul cover --report lcov --dir test/reports/ <%= config.binPath %>/_mocha test/spec -- --reporter ' + reporter,
options : {
stdout : true,
failOnError : true
}
},
test: {
command: '<%= config.binPath %>/_mocha test/spec'
}
},
coveralls: {
Expand All @@ -69,7 +72,8 @@ module.exports = function(grunt) {
// grunt test - runs linting and then our unit tests
grunt.registerTask('test', [
'lint',
'shell:test'
'shell:test',
'shell:coverage'
]);

// register default grunt command as grunt test
Expand Down

0 comments on commit 654d069

Please sign in to comment.