Skip to content

Commit

Permalink
Merge pull request #104 from ewandennis/ISSUE-102
Browse files Browse the repository at this point in the history
#102: Added a mocha test task to the default grunt task
  • Loading branch information
aydrian committed Mar 14, 2016
2 parents 42ef374 + 654d069 commit d6eaa2a
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 d6eaa2a

Please sign in to comment.