ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

I have an example of doing code coverage using gcov for ROS C++ code at node_example. The tests are run as part of a Travis job and the results are uploaded to codecov, but you can also get the coverage results locally as well.

That package does not yet include tests for Python code.

I have an example of doing code coverage using gcov for ROS C++ code at node_example. The tests are run as part of a Travis job and the results are uploaded to codecov, but you can also get the coverage results locally as well.

The relevant steps for doing code coverage of a ROS package can be found in the Travis configuration file at:

https://github.com/tdenewiler/node_example/blob/master/.travis.yml#L134

That package does not yet include tests for Python code.