Default value for coverage report html#573
Merged
Merged
Conversation
Allow using --coverage-report-html without specifying a directory, defaulting to coverage/html for convenience.
JesusValeraDev
approved these changes
Dec 21, 2025
| --coverage-paths <paths> Source paths to track (default: auto-discover) | ||
| --coverage-exclude <pats> Patterns to exclude (comma-separated) | ||
| --coverage-report <file> Output file (default: coverage/lcov.info) | ||
| --coverage-report-html [dir] HTML report (default: coverage/html) |
Collaborator
There was a problem hiding this comment.
All the other parameters are with <>, is there any reason to use [] here?
Member
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

📚 Description
Adds a sensible default value for
--coverage-report-htmloption, making it optional to specify the directory path. When no directory is provided, the HTML report is generated incoverage/html.This follows the same pattern already used by
--coverage-reportwhich defaults tocoverage/lcov.info.Motivation
Previously, users had to explicitly provide a directory path when using
--coverage-report-html:Now the directory is optional with a sensible default:
This reduces boilerplate and provides a consistent experience with other coverage options that have defaults.
🔖 Changes
--coverage-report-htmlargument parsing to detect when no value or a flag is provided nextcoverage/htmlwhen no directory is specified[dir]parameter syntax✅ To-do list
CHANGELOG.mdto reflect the new feature or fix