Skip to content

Include all files in coverage report, not just the ones with test against them #28

@yann-combarnous

Description

@yann-combarnous

We use Cypress for testing with Vite + this plugin, and run our tests in parallel.

As a tester, I would like to be able to get a global code coverage for all files selected by include/exclude options, not just the ones that have already tests against them.

So if include/exclude results in files A, B and C, and my tests just cover file C, I want to see the code coverage for A, B and C, not just C.

NYC supports this option through the --all flag, see https://github.com/istanbuljs/nyc#selecting-files-for-coverage . This also seems supported by Istanbul Instrumenter Loader, see https://www.npmjs.com/package/istanbul-instrumenter-loader .

Not having this option is breaking running tests in parallel with Codecov or Coveralls, for instance, as merged reports are missing for different untested files in each test group.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions