Skip to content

Request: Add ability to native instrumentation to report coverage for unused files #1873

Open
@LeoLeal

Description

@LeoLeal

Problem:
Today, we are unable to get untested files as 0% coverage, because native instrumentation only shows coverage for tested files.

Suggestion:
c8 (native v8 coverage reporter) has the ability to add unused files in the coverage report for true code coverage.
It makes c8 scan all files recursively from the current directory that matches the patterns in the "include" option, making untested files reported as 0% coverage.
This is the --all flag.

It would be nice to be able to pass this as a boolean in the coverageConfig object to turn this --all flag on for c8 (native instrumentation).

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions