Create coverage for pytest using ROS
A python unittest is added to the CMakeLists.txt using
catkin_add_nosetests(unittest.py)
where the CMake-Macro is defined in https://github.com/ros/catkin
here to macro checks for the environment variable CATKIN_TEST_COVERAGE
and will enable the coverage flags
if("$ENV{CATKIN_TEST_COVERAGE}" STREQUAL "1")
set(_covarg " --with-coverage")
endif()
A python pytest is added to the CMakeLists.txt using
add_pytest(pytest.py)
where CMake-Macro is define in https://github.com/machinekoder/ros_pytest
However inside this Macro the essential part is commented out see
- Open PR to rosdistro for python-pytest-cover ros/rosdistro#24929
- Open PR for https://github.com/machinekoder/ros_pytest for coverage functionality similiar to the catkin CMake-Macro