Add istanbul to Gruntfile.js (#1189)

This commit is contained in:
Kazuki-Nakanishi 2017-03-09 15:28:13 +00:00 committed by Nick O'Leary
parent 3658d0e039
commit 281351e6b3
2 changed files with 14 additions and 1 deletions

View File

@ -41,6 +41,16 @@ module.exports = function(grunt) {
core: { src: ["test/_spec.js","test/red/**/*_spec.js"]},
nodes: { src: ["test/nodes/**/*_spec.js"]}
},
mocha_istanbul: {
options: {
globals: ['expect'],
timeout: 3000,
ignoreLeaks: false,
ui: 'bdd',
reporter: 'spec'
},
coverage: { src: ['test/**/*_spec.js'] }
},
jshint: {
options: {
jshintrc:true
@ -396,6 +406,7 @@ module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-chmod');
grunt.loadNpmTasks('grunt-jsonlint');
grunt.loadNpmTasks('grunt-mocha-istanbul');
grunt.registerMultiTask('attachCopyright', function() {
var files = this.data.src;

View File

@ -84,10 +84,12 @@
"grunt-nodemon":"~0.4.2",
"grunt-sass":"~1.2.1",
"grunt-simple-mocha": "~0.4.1",
"grunt-mocha-istanbul": "5.0.2",
"mocha": "~3.2.0",
"should": "^8.4.0",
"sinon": "1.17.7",
"supertest": "2.0.1"
"supertest": "2.0.1",
"istanbul": "0.4.5"
},
"engines": {
"node": ">=4"