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

Revision history [back]

click to hide/show revision 1
initial version

answered 2015-10-28 09:10:21 -0500

joq gravatar image

The answer to this question tells how to do it using catkin_make:

  • http://answers.ros.org/question/54051/how-do-i-run-unit-tests-for-a-catkin-package/

In summary, the necessary targets are: tests, run_tests and run_tests_PACKAGENAME.

catkin_tools can probably build and run those same targets, but I am not sure of the exact syntax.

The answer to this question tells how to do it using catkin_make:

  • http://answers.ros.org/question/54051/how-do-i-run-unit-tests-for-a-catkin-package/

In summary, the necessary targets are: tests, run_tests and run_tests_PACKAGENAME.

catkin_tools can probably build and run those same targets, but I am not sure of the exact syntax.

UPDATE: To get the exact target names for package foo:

cd build/foo
make run_tests<TAB><TAB>