Skip to main content

BettererCoverageTest

API > @betterer/coverage > BettererCoverageTest

BettererCoverageTest provides a wrapper around BettererTest that makes it easier to implement coverage tests.

Signature

export declare class BettererCoverageTest extends BettererTest<BettererCoverageIssues, BettererCoverageIssues, BettererCoverageDiff> 
Extends: [BettererTest](/betterer/docs/betterer.betterertest)<[BettererCoverageIssues](/betterer/docs/coverage.betterercoverageissues), [BettererCoverageIssues](/betterer/docs/coverage.betterercoverageissues), [BettererCoverageDiff](/betterer/docs/coverage.betterercoveragediff)>

Remarks

BettererCoverageTest provides a useful example for the more complex possibilities of the BettererTestOptions interface.

The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the BettererCoverageTest class.

Methods

MethodModifiersDescription
exclude(excludePatterns)Add a list of Regular Expression filters for files to exclude when running the test.
include(includePatterns)Add a list of glob patterns for files to include when running the test.