-
Notifications
You must be signed in to change notification settings - Fork 46
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
Colcon extension for coverage results #110
Comments
I can also submit a rough first version if it helps to have something more concrete with which to discuss. |
For the scope of only targeting In the context of coverage in general I think it would make sense to cover different coverage reports, e.g. for Python packages. A tool like I haven't thought about it too much if a separate verb like |
How about if it prints the overall rate:
|
That sounds great. A package specific rate would also be good.
Sure, that is possible. From past experience that usually increases the chance that after the first step the second never happens 😉
Here it sounds a bit more reasonable to keep them separate. Especially since it will take a bit until the coverage stuff settles while being actively designed / developed.
That sounds like a highly custom option to me. Only works on some platforms, only works when the previous You could imagine a |
@dirk-thomas Could you look at the first iteration that I have published https://github.com/ApexAI/colcon-lcov-result? It would be great to merge it to the |
In order to move the existing repository please transfer it to my username. From there I can then transfer it to the
Once the repository has been moved you should be able to level the version number for the first release, tag the version and release the package to PyPI on your own (as well as any future releases). I would just ask you to add my PyPI username (which is If you also like Debian package to be created you will have to poke me for now to do the release (every time you made a PyPI release, since we can't grant SSH access to the |
@dirk-thomas Thanks! I have transferred the project to you |
And transferred to the |
Btw the readme file has the extension |
@jpsamper2009 Can this ticket be closed?
While this is still pending I would rather track it in the corresponding repo (if not even easier to just resolve it right away). |
@dirk-thomas Agreed |
@dirk-thomas You should have access to the PyPI project now. Let me know if that is not the case. Also, I don't think we need debians for now. |
Description
colcon
extension to parse gcov/lcov coverage result files. I'm thinking of naming itcolcon-lcov-result
. Below is my proposal and I'm looking for some feedback before I dive in. Thanks!Motivation
To be able to visualize coverage results in C/C++ code using the lcov tool
Proposed workflow
For a single package:
To find packages with no coverage:
Command and options
colcon lcov-result
:lcov --capture ...
for each packageros2_ws/lcov/
) (lcov --add-tracefile
+genhtml
)colcon lcov-result --baseline
:lcov --initial --capture...
to generate a zero-coverage baseline for each packagelcov
will ignore it. This baseline combined with the actual coverage will reveal these files (see ii. above)colcon lcov-result --zero-counters
:lcov --zerocounters ...
on each packageThe text was updated successfully, but these errors were encountered: