Skip to content

Commit

Permalink
Ensure tests and coverage will run properly in Windows environments (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
coldacid authored and aydrian committed Apr 13, 2016
1 parent 996d7ce commit 88b901d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
var matchdep = require('matchdep')
, gruntTimer = require('time-grunt');
, gruntTimer = require('time-grunt')
, path = require('path');

module.exports = function(grunt) {
// Dynamically load any preexisting grunt tasks/modules
Expand All @@ -9,7 +10,7 @@ module.exports = function(grunt) {
gruntTimer(grunt);

var config = {
binPath: './node_modules/.bin'
binPath: path.join('.', 'node_modules', '.bin'),
};

var reporter = grunt.option('reporter') || 'xunit-file';
Expand Down Expand Up @@ -46,14 +47,14 @@ module.exports = function(grunt) {
},
shell: {
coverage: {
command : '<%= config.binPath %>/istanbul cover --report lcov --dir test/reports/ <%= config.binPath %>/_mocha test/spec -- --reporter ' + reporter,
command : path.join(config.binPath, 'istanbul') + ' cover --report lcov --dir test/reports/ node_modules/mocha/bin/_mocha test/spec -- --reporter ' + reporter,
options : {
stdout : true,
failOnError : true
}
},
test: {
command: '<%= config.binPath %>/_mocha test/spec'
command: path.join(config.binPath, '_mocha') + ' test/spec'
}
},
coveralls: {
Expand Down

0 comments on commit 88b901d

Please sign in to comment.