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

how to run gtest unit in groovy

asked 2013-03-04 22:27:57 -0600

hawk gravatar image

updated 2013-03-05 05:33:07 -0600

joq gravatar image

I have built laser_geometry with catkin, no error. as discription in ros wiki about gtest. It will generate a runable test. But there is nothing. How do I test the package? Someone has used this package? Help me please. Thanks a lot!

in the CMakeList.txt , has added catkin_add_test()

edit retag flag offensive close merge delete


Is there a test_depend for gtest in your package.xml?

joq gravatar image joq  ( 2013-03-05 05:34:56 -0600 )edit

2 Answers

Sort by » oldest newest most voted

answered 2013-03-05 14:16:50 -0600

hawk gravatar image

Thank you joq. I have found answer in your blog space and run test successful. I have to execute "make tests" in ~/catkin_ws/build, not ~/catkin_ws, if not, it will prompt : (make: * 没有规则可以创建目标“tests”。 停止。)

by the way. "test_depend" is not needed. Thanks again for your reply!

edit flag offensive delete link more

answered 2013-06-11 15:41:55 -0600

ffurrer gravatar image

Since the documentation of this is not really done yet...

yes, hawk your solution does work, but is not really what I wanted, so with the help of this (http:// question/59779/data-files-for-catkin-gtest/) (sorry can not create links because of my low karma) question and answer from william, you simply have to run

catkin_make run_tests

instead of just catkin_make

edit flag offensive delete link more

Question Tools


Asked: 2013-03-04 22:27:57 -0600

Seen: 665 times

Last updated: Jun 11 '13