You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 26, 2021. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -52,9 +52,9 @@ To instrument and report on a file using Mocha as your test runner:
52
52
debugDirectory:'debug'
53
53
}))
54
54
.pipe(mocha())
55
-
.pipe(cover.report({
56
-
outFile:'coverage.html'
57
-
}));
55
+
.pipe(cover.gather())
56
+
.pipe(cover.format())
57
+
.pipe(gulp.dest('reports');
58
58
});
59
59
```
60
60
@@ -71,9 +71,9 @@ To instrument and report using Jasmine as your test system:
71
71
debugDirectory:'debug'
72
72
}))
73
73
.pipe(jasmine())
74
-
.pipe(cover.report({
75
-
outFile:'jasmine.html'
76
-
}));
74
+
.pipe(cover.gather())
75
+
.pipe(cover.format())
76
+
.pipe(gulp.dest('reports');
77
77
});
78
78
```
79
79
@@ -212,7 +212,7 @@ Calling format with the following arguments will all create two vinyl files in t
212
212
213
213
## The Report Task (Deprecated)
214
214
215
-
This task is deprecated because it does not support the gulp.dest task and will probably be removed before the first 1.0.0 release.
215
+
This task is deprecated because it does not support the gulp.dest task and will probably be removed before the first 1.0.0 release. Use [The Gather Task](#the-gather-task) and [The Format Task](#the-format-task) instead.
216
216
217
217
Report will generate the reports for the instrumented files and can only be called after `instrument` has been called. It will also change the stream content for the tasks and pass through the LCOV JSON data so that the enforce task can be run.
0 commit comments