gtest for ROS

asked 2022-06-14 07:27:26 -0500

Kansai gravatar image

I am trying to understand a code that uses ROS and that contains unittests as well. These unit tests use gtest. I tried to apply the instructions here in the part where it says "run tests" so I did

catkin_make run_tests

but no tests were run (in fact why it would run with a "make" command?) instead I got something that started like

 ###
 #### Running command: "cmake /home/user/ws/src
 -DCATKIN_DEVEL_PREFIX=/home/user/ws/devel
 -DCMAKE_INSTALL_PREFIX=/home/user/ws/install
 -G Unix Makefiles" in "/home/user/ws/build"
 ####
 -- The C compiler identification is GNU 7.5.0
 -- The CXX compiler identification is GNU 7.5.0

which looks like "making" not running a test.

Is there some way to find the executables of the tests? Or how can I run the tests?

edit retag flag offensive close merge delete