Skip to main content

Module coverage

Module coverage 

Source
Expand description

Istanbul coverage input precedence shared by every surface that feeds CRAP scoring: the explicit flag or tool parameter, then FALLOW_COVERAGE / FALLOW_COVERAGE_ROOT, then health.coverage / health.coverageRoot from the project config. Engine auto-detection of coverage/coverage-final.json applies only when every layer leaves the coverage path unset.

resolve_coverage_inputs is pure: adapters read the environment and load config at their own boundary and pass the layers in, so the CLI and the MCP typed route share one order (#2359, #2368) without the API reading process state. NAPI keeps explicit options and does not call it.

Structs§

CoverageInputs
Istanbul coverage inputs from one resolution layer, or the resolved result.

Enums§

CoverageInputError
Shape errors in resolved coverage inputs.
CoverageInputSource
The layer that supplied a resolved coverage input.

Functions§

resolve_coverage_inputs
Resolve coverage inputs with the shared precedence: explicit, then env, then config_health. Each input resolves independently, so an explicit coverage path pairs with an environment or config root and vice versa. config_health is the health section of the project config when the caller loaded one; see CoverageInputs::needs_config_layer.