Skip to content

Commit

Permalink
chore: Per #12, include bin/** in coverage calculations.
Browse files Browse the repository at this point in the history
  • Loading branch information
randytarampi committed Aug 27, 2018
1 parent 2957d75 commit 6cf8483
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
1 change: 0 additions & 1 deletion packages/js/.nycrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
],
"exclude": [
"node_modules/**",
"bin/**",
"coverage/**",
".nyc_output/**",
"test/**",
Expand Down
1 change: 0 additions & 1 deletion packages/pseudoimage/.nycrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
],
"exclude": [
"node_modules/**",
"bin/**",
"coverage/**",
".nyc_output/**",
"test/**",
Expand Down
1 change: 0 additions & 1 deletion packages/pseudolocalize/.nycrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
],
"exclude": [
"node_modules/**",
"bin/**",
"coverage/**",
".nyc_output/**",
"test/**",
Expand Down
10 changes: 9 additions & 1 deletion packages/pseudolocalize/gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,12 @@ gulp.task("test.unit", () => {
.pipe(mocha(mochaConfig));
});

gulp.task("test", gulp.parallel(["test.unit"]));
gulp.task("test.integration", () => {
const mocha = require("gulp-mocha");
const mochaConfig = require("./mocha.config");

return gulp.src("test/integration/**/*.js", {read: false})
.pipe(mocha(mochaConfig));
});

gulp.task("test", gulp.parallel(["test.unit", "test.integration"]));

0 comments on commit 6cf8483

Please sign in to comment.