-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Description
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.
Supporting both reporter 'lcov' or 'html' would maintain compatibility while enhancing organization and usability.
Suggested solution
LCOV reporter
- https://istanbul.js.org/docs/advanced/alternative-reporters/#lcov
- https://istanbul.js.org/docs/advanced/alternative-reporters/#html
Alternative
No response
Additional context
No response
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status