Skip to content

Code coverage breaks if you specify a different compiler #956

@flynneva

Description

@flynneva

Description

It looks like the CMAKE args are not forwarded to the coverage commands:

Image

Expected Behavior

Code coverage mixin still works if specifying a different compiler via --cmake-args

Actual Behavior

Code coverage mixin fails, since I think it uses a different compiler (whatever the system default is) to generate code coverage.

See this job for an example.

To Reproduce

  1. See this commit where I disabled the code-coverage mixin from this action on how to reproduce

System (please complete the following information)

  • OS: Any
  • ROS 2 Distro: Any

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions