- Notifications
You must be signed in to change notification settings - Fork1
An istanbul report implementation that produces a clover xml file and summary coverage json file with configurable limits.
License
Cellarise/istanbul-reporter-clover-limits
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
An istanbul report implementation that produces a clover xml file and summary test coverage json file with configurable watermarks.
Register the report using the istanbul Report factory.
varcloverLimitsReport=require('istanbul-reporter-clover-limits');varistanbul=require('istanbul');istanbul.Report.register(cloverLimitsReport);
Create a report after istanbul has collected coverage information.
varreport=require('istanbul').Report.create('clover-limits');
An istanbul report implementation that produces a clover xml file and summary test coverage json file with configurable watermarks..
Extends:istanbul.Report
Param | Type | Description |
---|---|---|
opts | Object | optional |
[opts.dir] | String | the directory in which to the clover report will be written |
[opts.file] | String | the file name for the coverage report, defaulted to config attribute or "clover.xml" |
[opts.testDir] | String | the directory in which to the summary coverage test report will be written |
[opts.testFile] | String | the file name for the summary coverage test report, defaulted to config attribute or "clover-tests.json" |
[opts.watermarks] | Object | watermarks with three limits for the coverage report and summary coverage test report. 1) lower limit for html report and minimum code coverage test 2) mid limit for html report 3) skipped limit for maximum skipped code test Only the lower limit [index 0] and skipped [index 2] is used by the summary coverage test report. Example watermark object: { statements: [ 50, 80, 20 ], lines: [ 50, 80, 20], functions: [ 50, 80, 20], branches: [ 50, 80, 20 ] } |
allows writing content to a file using a callback that is passed a content writer
Kind: inner method ofistanbul-reporter-clover-limits
Param | Description |
---|---|
file | the name of the file to write |
callback | the callback that is called ascallback(contentWriter) |
copies a file from source to destination
Kind: inner method ofistanbul-reporter-clover-limits
Param | Description |
---|---|
source | the file to copy, found on the file system |
dest | the destination path |
marker method to indicate that the caller is done with this writer objectThe writer is expected to emit adone
event only after this method is calledand it is truly done.
Kind: inner method ofistanbul-reporter-clover-limits
documented byjsdoc-to-markdown.
MIT License (MIT). All rights not explicitly granted in the license are reserved.
Copyright (c) 2015 John Barry
istanbul-reporter-clover-limits@0.1.13 - "MIT License (MIT)",documented bynpm-licenses.
About
An istanbul report implementation that produces a clover xml file and summary coverage json file with configurable limits.
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.