diff --git a/tasks/test.js b/tasks/test.js index 18a6c26ba..d7ce04d0a 100644 --- a/tasks/test.js +++ b/tasks/test.js @@ -32,7 +32,7 @@ module.exports = function(grunt) { grunt.registerTask('test:cov', function() { var done = this.async(); - var runner = childProcess.fork('node_modules/.bin/istanbul', ['cover', '--source-map', '--', './spec/env/runner.js'], {stdio: 'inherit'}); + var runner = childProcess.fork('node_modules/istanbul/lib/cli.js', ['cover', '--source-map', '--', './spec/env/runner.js'], {stdio: 'inherit'}); runner.on('close', function(code) { if (code != 0) { grunt.fatal(code + ' tests failed'); @@ -55,7 +55,7 @@ module.exports = function(grunt) { grunt.registerTask('test:check-cov', function() { var done = this.async(); - var runner = childProcess.fork('node_modules/.bin/istanbul', ['check-coverage', '--statements', '100', '--functions', '100', '--branches', '100', '--lines 100'], {stdio: 'inherit'}); + var runner = childProcess.fork('node_modules/istanbul/lib/cli.js', ['check-coverage', '--statements', '100', '--functions', '100', '--branches', '100', '--lines 100'], {stdio: 'inherit'}); runner.on('close', function(code) { if (code != 0) { grunt.fatal('Coverage check failed: ' + code);