From 4cb2c264751c1d38335d912a62f391b77c29dbc2 Mon Sep 17 00:00:00 2001 From: Erdenesukh Tsendjav <32915874+sukh0128@users.noreply.github.com> Date: Tue, 4 Dec 2018 15:55:09 -0600 Subject: [PATCH] The istanbul command string in the gulp-tests.js file for each of the tests had to be changed to just the keyword istanbul instead of pointing to the istanbul file location on WINDOWS machines --- gulp/gulp-tests.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gulp/gulp-tests.js b/gulp/gulp-tests.js index 1d68278a2c..e1fe7c2a82 100644 --- a/gulp/gulp-tests.js +++ b/gulp/gulp-tests.js @@ -167,7 +167,7 @@ gulp.task('test:content:safe', gulp.series('test:prepare:build', (cb) => { gulp.task('test:api:unit', (done) => { let runner = exec( - testBin('node_modules/.bin/istanbul cover --dir coverage/api-unit node_modules/mocha/bin/_mocha -- test/api/unit --recursive --require ./test/helpers/start-server'), + testBin('istanbul cover --dir coverage/api-unit node_modules/mocha/bin/_mocha -- test/api/unit --recursive --require ./test/helpers/start-server'), (err) => { if (err) { process.exit(1); @@ -185,7 +185,7 @@ gulp.task('test:api:unit:watch', () => { gulp.task('test:api-v3:integration', (done) => { let runner = exec( - testBin('node_modules/.bin/istanbul cover --dir coverage/api-v3-integration --report lcovonly node_modules/mocha/bin/_mocha -- test/api/v3/integration --recursive --require ./test/helpers/start-server'), + testBin('istanbul cover --dir coverage/api-v3-integration --report lcovonly node_modules/mocha/bin/_mocha -- test/api/v3/integration --recursive --require ./test/helpers/start-server'), {maxBuffer: 500 * 1024}, (err) => { if (err) { @@ -217,7 +217,7 @@ gulp.task('test:api-v3:integration:separate-server', (done) => { gulp.task('test:api-v4:integration', (done) => { let runner = exec( - testBin('node_modules/.bin/istanbul cover --dir coverage/api-v4-integration --report lcovonly node_modules/mocha/bin/_mocha -- test/api/v4 --recursive --require ./test/helpers/start-server'), + testBin('istanbul cover --dir coverage/api-v4-integration --report lcovonly node_modules/mocha/bin/_mocha -- test/api/v4 --recursive --require ./test/helpers/start-server'), {maxBuffer: 500 * 1024}, (err) => { if (err) { @@ -254,4 +254,4 @@ gulp.task('test:api-v3', gulp.series( 'test:api:unit', 'test:api-v3:integration', done => done() -)); \ No newline at end of file +));