Skip to content

Code coverage support for both ROS1 and ROS2 #500

@Briancbn

Description

@Briancbn

Feature Request

Environment variables to easily enable code coverage measurement in cpp, python or hybrid packages on both ROS1 and ROS2 distros.

Reason

There currently isn't a code coverage solution for ici, that can support both ROS1 and ROS2 on both python and cpp code base. There have been past discussion (#178, #112) on this issue that seems inactive for years now. There is also features included in PR #452 that enable the support for cpp lcov

Implementation Consideration

  • ROS 1 side, I think this is a very good example , but we can integrate this into the CI shell script instead of having external dependencies.

  • ROS 2 side, colcon mixin can be utilized to generate coverage for both cpp and python

  • Code coverage reporting tools, I think both codecov.io and coveralls.io can be supported.

I currently have bandwidth to work on this, but please let me know if this feature is needed or you have any suggestions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions