Skip to content

Commit

Permalink
Add grunt-mocha-test to run tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasmpb committed Jun 8, 2015
1 parent 130c74a commit 949b3c1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
15 changes: 9 additions & 6 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,19 @@ module.exports = function(grunt) {
jshint: {
files: ['Gruntfile.js', 'lib/**/*.js']
},
shell: {
runMocha: {
command: 'mocha'
}
mochaTest: {
test: {
options: {
reporter: 'spec',
},
src: ['test/**/*.js']
}
}
});

grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-shell');
grunt.loadNpmTasks('grunt-mocha-test');

grunt.registerTask('default', ['jshint', 'shell']);
grunt.registerTask('default', ['jshint', 'mochaTest']);

};
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"chai": "^3.0.0",
"grunt": "^0.4.5",
"grunt-contrib-jshint": "^0.11.2",
"grunt-shell": "^1.1.2",
"grunt-mocha-test": "^0.12.7",
"nock": "^2.3.0",
"node-uuid": "^1.4.3"
}
Expand Down

0 comments on commit 949b3c1

Please sign in to comment.