diff --git a/index.js b/index.js index 13dc4b3..d03426e 100644 --- a/index.js +++ b/index.js @@ -202,13 +202,13 @@ var NpmtsTests; .pipe(plugins.g.istanbul.hookRequire()); }); plugins.gulp.task('mocha', function () { - return plugins.gulp.src(['test/test.js']) + return plugins.gulp.src(["./test/test.js"]) .pipe(plugins.g.mocha()) .pipe(plugins.g.istanbul.writeReports()) .pipe(plugins.g.istanbul.enforceThresholds({ thresholds: { global: 30 } })); }); plugins.gulp.task("coveralls", function () { - return plugins.gulp.src('coverage/**/lcov.info') + return plugins.gulp.src("./coverage/**/lcov.info") .pipe(plugins.g.if((process.env.TRAVIS && config.coveralls), plugins.g.coveralls())); }); plugins.gulp.task("test", function () { diff --git a/test/assets/coverage/lcov-report/assets/index.html b/test/assets/coverage/lcov-report/assets/index.html index cddcbce..1270027 100644 --- a/test/assets/coverage/lcov-report/assets/index.html +++ b/test/assets/coverage/lcov-report/assets/index.html @@ -77,7 +77,7 @@ diff --git a/test/assets/coverage/lcov-report/assets/index.js.html b/test/assets/coverage/lcov-report/assets/index.js.html index e86b584..d88676e 100644 --- a/test/assets/coverage/lcov-report/assets/index.js.html +++ b/test/assets/coverage/lcov-report/assets/index.js.html @@ -76,7 +76,7 @@ module.exports = testplugin; diff --git a/test/assets/coverage/lcov-report/index.html b/test/assets/coverage/lcov-report/index.html index 0c2f3a0..19db203 100644 --- a/test/assets/coverage/lcov-report/index.html +++ b/test/assets/coverage/lcov-report/index.html @@ -77,7 +77,7 @@ diff --git a/test/assets/npmts.json b/test/assets/npmts.json index 71b485d..63cc63e 100644 --- a/test/assets/npmts.json +++ b/test/assets/npmts.json @@ -9,5 +9,5 @@ "./subts2/", "./customdir" ], - "coveralls":"false" + "coveralls":true } \ No newline at end of file diff --git a/ts/npmts.tests.ts b/ts/npmts.tests.ts index 9b4fa1d..17938e7 100644 --- a/ts/npmts.tests.ts +++ b/ts/npmts.tests.ts @@ -12,7 +12,7 @@ module NpmtsTests { }); plugins.gulp.task('mocha', function () { - return plugins.gulp.src(['test/test.js']) + return plugins.gulp.src(["./test/test.js"]) .pipe(plugins.g.mocha()) // Creating the reports after tests ran .pipe(plugins.g.istanbul.writeReports()) @@ -21,7 +21,7 @@ module NpmtsTests { }); plugins.gulp.task("coveralls",function(){ - return plugins.gulp.src('coverage/**/lcov.info') + return plugins.gulp.src("./coverage/**/lcov.info") .pipe(plugins.g.if( (process.env.TRAVIS && config.coveralls), plugins.g.coveralls()