Skip to main content

coverageTotal()

API > @betterer/coverage > coverageTotal

Use this test to track your total test coverage. Reads a json-summary format coverage summary. Make sure to run your tests separately before running Betterer.

Signature

export declare function coverageTotal(coverageSummaryPath?: string): BettererCoverageTest;

Parameters

ParameterTypeDescription
coverageSummaryPathstringrelative path to the coverage summary. Defaults to './coverage/coverage-summary.json'.

Returns

BettererCoverageTest