本文整理汇总了TypeScript中gulp-istanbul.writeReports函数的典型用法代码示例。如果您正苦于以下问题:TypeScript writeReports函数的具体用法?TypeScript writeReports怎么用?TypeScript writeReports使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了writeReports函数的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: coverage
/**
* Runs test coverage report.
*/
@Task("coverage", ["preCoverage"])
coverage() {
chai.should();
chai.use(require("sinon-chai"));
chai.use(require("chai-as-promised"));
return gulp.src("./build/es5/test/**/*.js")
.pipe(mocha())
.pipe(istanbul.writeReports());
}
示例2: coveragePost
/**
* Runs post coverage operations.
*/
@Task("coveragePost", ["coveragePre"])
coveragePost() {
chai.should();
chai.use(require("sinon-chai"));
chai.use(require("chai-as-promised"));
return gulp.src(["./build/es5/test/functional/**/*.js"])
.pipe(mocha())
.pipe(istanbul.writeReports());
}
示例3: coveragePost
/**
* Runs post coverage operations.
*/
@Task()
coveragePost() {
return gulp.src(["./build/compiled/test/**/*.js"])
.pipe(istanbul.writeReports());
}