tests(sqljs): removed istanbul pipe

This commit is contained in:
Daniel Lang 2017-12-18 22:28:31 +01:00
parent 0dd7251eeb
commit 7639623d44

View File

@ -327,6 +327,8 @@ export class Gulpfile {
*/
@Task("coveragePost", ["coveragePre"])
coveragePost() {
let error = false;
chai.should();
chai.use(require("sinon-chai"));
chai.use(require("chai-as-promised"));
@ -337,8 +339,15 @@ export class Gulpfile {
grep: !!args.grep ? new RegExp(args.grep) : undefined,
timeout: 15000
}))
.pipe(istanbul.writeReports())
.on('error', process.exit.bind(process, 1));
//.pipe(istanbul.writeReports())
.on("error", () => {
console.error("An error occured while running mocha");
error = true;
process.exit(1);
})
.on("finish", () => {
console.log("mocha finished, error is " + error ? "true" : "false");
})
}
/**