Byzantine
Istanbul json coverage parser
Install
Byzantine expects node 6
yarn add byzantine# or npm install byzantine --save
Usage
Byzantine has 2 module: parse
and aggregate
:
const parse = ;const aggregate = ;const json = ; // returns Array<Coverage>const coverages = ;// returns CoverageAggregateconst statements branches functions = ;
The main module (byzantine
) returns array of simplified coverage information.
type Coverage path: String statements: CoverageData branches: CoverageData functions: CoverageData type CoverageData covered: Int all: Int
aggregate
returns percentage of coverage for each category in Float
, or null
for empty array
type CoverageAggregate statements: ?Float branches: ?Float functions: ?Float}
License
MIT