verify-istanbul-coverage
Verifies minimum total covered lines in generated Istanbul reports.
Usage
CLI
npm i -g verify-istanbul-coverage
verify-istanbul-coverage
Flags
f
/--file
: File path to read from. Defaults to./coverage/lcov-report/index.html
.-m
/--minimum
: Minimum expected coverage. Defaults to100
.
Node.js
; async { const coverage = await ; if coveragestatus === VerificationStatusSuccessful console; else console; console; } ;
Long names of flags can be passed as object members to verifyCoverage
.
See ./index.ts
for the full typings.
Development
First clone the repository and install its dependencies:
git clone https://github.com/joshuakgoldberg/verify-istanbul-coveragecd verify-istanbul-coveragenpm i
npm run watch
runs TypeScript in watch mode.npm run lint
lints with TSLint.npm run test
runs tests in watch mode.npm run prepublish
builds code and runs tests.