非常に明白な何かを見落としている可能性がありますがgulp-mocha
、エラーを検出することができずgulp watch
、テストが失敗するたびにタスクが終了してしまいます。
セットアップは非常に簡単です。
gulp.task("watch", ["build"], function () {
gulp.watch([paths.scripts, paths.tests], ["test"]);
});
gulp.task("test", function() {
return gulp.src(paths.tests)
.pipe(mocha({ reporter: "spec" }).on("error", gutil.log));
});
または、ハンドラーをストリーム全体に配置しても、同じ問題が発生します。
gulp.task("test", function() {
return gulp.src(paths.tests)
.pipe(mocha({ reporter: "spec" }))
.on("error", gutil.log);
});
も使用してみましたが、plumber
役に立たなかったので、些細なことを見落としていると思います。combine
gulp-batch