Commit 6d65d16 1 parent 7df3bec commit 6d65d16 Copy full SHA for 6d65d16
File tree 2 files changed +18
-1
lines changed
2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change 1
1
## Changelog
2
2
3
+ * 2.3.0
4
+ - added support for custom reporter
5
+ - added support for wrapper script mapping
6
+
3
7
* 2.2.2
4
8
- added codecov report
5
9
Original file line number Diff line number Diff line change @@ -115,11 +115,13 @@ console.log(coverageResults.summary);
115
115
- v8 custom reporter
116
116
> example: [./test/custom-v8-reporter.js](./test/custom-v8-reporter.js)
117
117
118
+ ### Multiple Reports:
118
119
```js
119
120
const MCR = require(' monocart- coverage- reports' );
120
121
const options = {
121
122
outputDir: ' ./ coverage- reports' ,
122
123
reports: [
124
+ // build-in reports
123
125
[' console - summary' ],
124
126
[' v8' ],
125
127
[' html' , {
@@ -128,7 +130,18 @@ const options = {
128
130
[' json' , {
129
131
file: ' my- json- file .json '
130
132
}],
131
- ' lcovonly'
133
+ ' lcovonly' ,
134
+
135
+ // custom reports
136
+ // Specify reporter name with the NPM package
137
+ ["custom-reporter-1"],
138
+ ["custom-reporter-2", {
139
+ type: "istanbul",
140
+ option: "value"
141
+ }],
142
+ // Specify reporter name with local path
143
+ [' / absolute/ path/ to/ custom- reporter .js ' ]
144
+
132
145
]
133
146
}
134
147
const coverageReport = MCR(options);
You can’t perform that action at this time.
0 commit comments