Skip to content
This repository was archived by the owner on Mar 26, 2021. It is now read-only.

Commit 5399892

Browse files
committed
Merge pull request #33 from wdjunaidi/master
Switching example from deprecated Report to Gather/Format
2 parents b37bf50 + 3d80931 commit 5399892

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ To instrument and report on a file using Mocha as your test runner:
5252
debugDirectory: 'debug'
5353
}))
5454
.pipe(mocha())
55-
.pipe(cover.report({
56-
outFile: 'coverage.html'
57-
}));
55+
.pipe(cover.gather())
56+
.pipe(cover.format())
57+
.pipe(gulp.dest('reports');
5858
});
5959
```
6060
@@ -71,9 +71,9 @@ To instrument and report using Jasmine as your test system:
7171
debugDirectory: 'debug'
7272
}))
7373
.pipe(jasmine())
74-
.pipe(cover.report({
75-
outFile: 'jasmine.html'
76-
}));
74+
.pipe(cover.gather())
75+
.pipe(cover.format())
76+
.pipe(gulp.dest('reports');
7777
});
7878
```
7979
@@ -212,7 +212,7 @@ Calling format with the following arguments will all create two vinyl files in t
212212
213213
## The Report Task (Deprecated)
214214
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.
216216
217217
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.
218218

0 commit comments

Comments
 (0)