Skip to content
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

Expose '--ctest-pytest-with-coverage' option #68

Conversation

christophebedard
Copy link

@christophebedard christophebedard commented Mar 16, 2020

This exposes a --ctest-pytest-with-coverage option for 'cmake' packages. The intent is to use this to generate coverage information for pytest tests with CMake.

Related to ament/ament_cmake#226

@dirk-thomas
Copy link
Member

Since this option is not applicable to all CMake packages but only ROS/ament CMake packages this should be added to colcon-ros instead.

Before updating this I would recommend to wait for the feedback on ament/ament_cmake#226 to settle. Maybe the best way would be to set the to-be-created CMake option if the existing argument --pytest-with-coverage is set?

@dirk-thomas dirk-thomas added enhancement New feature or request in progress Actively being worked on (Kanban column) labels Mar 26, 2020
@christophebedard
Copy link
Author

Since this option is not applicable to all CMake packages but only ROS/ament CMake packages this should be added to colcon-ros instead.

Makes sense!

Before updating this I would recommend to wait for the feedback on ament/ament_cmake#226 to settle.

Will do.

Maybe the best way would be to set the to-be-created CMake option if the existing argument --pytest-with-coverage is set?

Correct me if I'm wrong, but what you're suggesting over in ament/ament_cmake#226 (comment) is to use a CMake option(...), which needs to be set at build time, while that existing --pytest-with-coverage flag is used when testing (colcon test).

If the above is correct, yes, a similar flag for colcon build makes sense.

@christophebedard
Copy link
Author

I'm going to close this in favour of colcon/colcon-ros#101. Feel free to keep the discussion here or just move it there.

@christophebedard christophebedard deleted the cmake-packages-pytest-with-coverage-option branch April 3, 2020 04:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request in progress Actively being worked on (Kanban column)
Development

Successfully merging this pull request may close these issues.

None yet

2 participants