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

how to run gtest unit in groovy

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

hawk gravatar image

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

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

Comments

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

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

2 Answers

Sort by » oldest newest most voted
1

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

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
0

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

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:// answers.ros.org/ 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

Stats

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

Seen: 665 times

Last updated: Jun 11 '13