Adds ts files to coverage report
This commit is contained in:
Родитель
66518c8365
Коммит
bb189a2236
2270
package.json
2270
package.json
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -2,6 +2,7 @@ var gulp = require('gulp');
|
|||
var del = require('del');
|
||||
var jeditor = require("gulp-json-editor");
|
||||
var istanbulReport = require('gulp-istanbul-report');
|
||||
var remapIstanbul = require('remap-istanbul/lib/gulpRemapIstanbul');
|
||||
|
||||
gulp.task('cover:clean', function (done) {
|
||||
return del('coverage', done);
|
||||
|
@ -16,6 +17,15 @@ gulp.task('cover:enableconfig', () => {
|
|||
.pipe(gulp.dest("./out", { 'overwrite': true }));
|
||||
});
|
||||
|
||||
gulp.task('remap-istanbul', () => {
|
||||
return gulp.src('./coverage/coverage.json')
|
||||
.pipe(remapIstanbul({
|
||||
reports: {
|
||||
'json': './coverage/coverage.json',
|
||||
}
|
||||
}));
|
||||
});
|
||||
|
||||
gulp.task('cover:enable', gulp.series('cover:clean', 'cover:enableconfig'));
|
||||
|
||||
gulp.task('cover:disable', () => {
|
||||
|
@ -28,6 +38,7 @@ gulp.task('cover:disable', () => {
|
|||
});
|
||||
|
||||
gulp.task('cover:combine-json', () => {
|
||||
// return gulp.src(['./coverage/coverage-final.json'])
|
||||
return gulp.src(['./coverage/coverage.json'])
|
||||
.pipe(istanbulReport({
|
||||
reporterOpts: {
|
||||
|
@ -53,4 +64,4 @@ gulp.task('cover:combine-html', () => {
|
|||
});
|
||||
|
||||
// for running on the ADO build system
|
||||
gulp.task('test:cover', gulp.series('cover:clean', 'cover:enableconfig', 'test'));
|
||||
gulp.task('test:cover', gulp.series('cover:clean', 'cover:enableconfig', 'test', 'remap-istanbul'));
|
Загрузка…
Ссылка в новой задаче