From 685ceac324f09336f17d5260644e34b8e1286bcc Mon Sep 17 00:00:00 2001 From: Hannah Wolfe Date: Wed, 1 Jun 2016 12:49:36 +0100 Subject: [PATCH] Exclude fix for grunt coverage task no issue - fixes grunt coverage task which was erroring with the message: 'Fatal error: spawn Unknown system errno 7' - using glob matching results in expanding to cover every file with -x in the mocha command, this was causing some sort of overflow type error. - we can just exclude the directory and this is much quicker & makes more sense --- Gruntfile.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index 3b4fa3c564..724f2d57e5 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -227,7 +227,7 @@ var _ = require('lodash'), mask: '**/*_spec.js', coverageFolder: 'core/test/coverage/unit', mochaOptions: ['--timeout=15000'], - excludes: ['core/client/**', 'core/server/built'] + excludes: ['core/client', 'core/server/built'] } }, coverage_all: { @@ -241,7 +241,7 @@ var _ = require('lodash'), coverageFolder: 'core/test/coverage/all', mask: '**/*_spec.js', mochaOptions: ['--timeout=15000'], - excludes: ['core/client/**', 'core/server/built'] + excludes: ['core/client', 'core/server/built'] } }