Skip to content

Commit 760c46e

Browse files
committed
Update README.md
Watermarks allow a user to change the color thresholds for Red, Yellow, and Green for each of; statements, functions, branches, and lines. Solves issue karma-runner#21
1 parent 0c99f75 commit 760c46e

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,22 @@ coverageReporter: {
192192
}
193193
```
194194

195+
#### watermarks
196+
**Type:** Object
197+
198+
**Description:** This will be used to set the coverage threshold colors. The first number is the threshold between Red and Yellow. The second number is the threshold between Yellow and Green.
199+
200+
```javascript
201+
coverageReporter: {
202+
watermarks: {
203+
statements: [ 50, 75 ],
204+
functions: [ 50, 75 ],
205+
branches: [ 50, 75 ],
206+
lines: [ 50, 75 ]
207+
}
208+
}
209+
```
210+
195211
#### multiple reporters
196212
You can use multiple reporters, by providing array of options.
197213

0 commit comments

Comments
 (0)