Skip to content

Support for LCOV Reporter in Vitest UI to Improve Coverage Report Organization #6381

@oscarmarina

Description

@oscarmarina

Clear and concise description of the problem

I would like to propose an enhancement to Vitest's coverage report system, specifically regarding the use of the LCOV reporter. Currently, the Vitest UI only recognizes the HTML reporter for displaying coverage results, which generates files directly in the root of the /coverage folder. This approach can lead to clutter and makes it harder to manage and share the reports, especially in CI/CD environments.

I suggest that Vitest should also support the LCOV reporter in its UI. The LCOV reporter creates the same HTML files but places them inside a dedicated lcov-report directory within the /coverage folder. This would result in a cleaner and more organized structure, making it easier to generate and distribute coverage reports without cluttering the root folder.

lcov-folder

Supporting both reporter 'lcov' or 'html' would maintain compatibility while enhancing organization and usability.

Suggested solution

LCOV reporter

lcov-html

Alternative

No response

Additional context

No response

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Approved

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions