-
Notifications
You must be signed in to change notification settings - Fork 25
ENH: Add generate-lcov-html flag
#258
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
663daeb to
8500954
Compare
8500954 to
5880d5e
Compare
|
Adding one point here. I think its ninja which calls |
| from .util import get_commands, get_config | ||
| from .util import run as _run | ||
|
|
||
| LCOV_OUTPUT_FILE = Path("build", "meson-logs", "coveragereport") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will depend on the build path the user specifies, so has to be set inside the build fn.
| default="html", | ||
| help=f"Format of the gcov report. Can be one of {', '.join(e.value for e in GcovReportFormat)}.", | ||
| ) | ||
| @click.option( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of adding a new flag, what do you think of adding an html-lcov option to --gcov-format?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, it makes sense to club it. It would need a bit of rework I have used the enum to denote the coverage format directly. Let me see how we can make it neater and more generic.
|
Thanks @ganesh-k13! |
@czgdp1807 , I searched quite a bit but I don't see any way to pass args to |
|
Hi. So you can check my uploaded coverage reports for SciPy - https://github.com/czgdp1807/scipy-lcov-genhtml-coverage-output. On
On
So, you can see, with I tried to search for an environment variable through which we can pass CLI options to |
|
Bit of an oversight from me, but seems like @czgdp1807 , regarding the external library coverage being included, can you see if you get the same results for NumPy in your machine. If not, I assume it's something to do with the way SciPy is built that is different that we need to deep dive on. |
|
I verified. https://github.com/czgdp1807/scipy-lcov-genhtml-coverage-output contains the latest reports. I think we are good. |



Changes
generate-lcov-htmlflag intestExample
Other error handling
Related
coverage,gcovandgenerate-lcov-htmlflags inspin testnumpy/numpy#24992spincommands for developer workflow numpy/numpy#24080testcommand #100--gcov-reportflag tospin test#159gcovflags for build #146ToDo