-
Notifications
You must be signed in to change notification settings - Fork 49
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
Propose colcon universal coverage result tool for python and cpp #359
Comments
Maybe the authors of these two extensions - @christophebedard for colcon-coveragepy-result and @jpsamper2009 for colcon-lcov-result - want to comment on this. I don't know if or why both can't be used for the same package atm and what prevents them from doing so. |
I thought about this too when I wrote I also don't see how you couldn't run both on, say, a CMake package with C++ and Python code. However, I think it's more about combining the output so that C++ and Python (& more) coverage is combined into one report. So instead of getting an output like:
we'd get an output like this:
The goal is to be able to support any and all languages, so combining the reports is a must, otherwise the coverage information is split up and is less readable. @Briancbn feel free to correct me or elaborate, of course. |
@christophebedard Yes, this is exactly what I am referring to,
Does this mean separating the report based on meta packages (or git packages)? My assumption was that the command simply will combine all the coverage data in a workspace and output them in one report that are easy to read and debug and also can be used by various coverage reporting services like codecov.io, coveralls.io, gitlab, jenkins etc. |
Ah yes, you're right! Both |
I will come back with a feature list and a prototype soon, also try to make use of the existing code base as much as possible, so that we will have something more tangible to discuss here. |
Past work and tickets:
lcov
for cppcoveragepy
for pythonThese two all work wonders for packages that are purely cpp or python, but not for those packages that has both cpp and python package.
We can combine the two results and generate output in the following format that is available to both
There is a pycobertura, that can combine cobertura xml results. However, its API is said to be 'not stable' before the 1.0.0 version. We can either develop using its API or come out with our own ones.
With that it is much easier to
The first two are especially for packages that has both python and cpp packages inside
Lastly about the library used, I would suggest to use
gcovr
instead oflcov
coveragepy
gcovr
supports a lot more report format compared tolcov
and it's python based, which can directly be implemented intocolcon
using its API likecoveragepy
I don't have a prototype yet, but please let me know your thoughts on whether this is needed and if there are design ideas or examples I should look more at.
The text was updated successfully, but these errors were encountered: