Is `catkin test` compatible with `catkin run_tests`?

asked 2022-04-04 05:32:27 -0500

yuzuser gravatar image

Hello, I have a CMakeLists.txt file where I've defined my tests:

if (CATKIN_ENABLE_TESTING)
  catkin_add_gtest(${PROJECT_NAME}_unit_gtests src/test/gtest/unittest.cpp)
  target_link_libraries(${PROJECT_NAME}_unit_gtests ${catkin_LIBRARIES} gtest_main)
  find_package(rostest REQUIRED)
  roslaunch_add_file_check(launch)
  add_rostest(src/test/my_ros_integration.test)
endif()

Which runs the specified tests if I run it with catkin run_tests. However, I wanted to use the new catkin tool with the verb test, but this doesn't work. I've built the space with catkin build first in both cases.

edit retag flag offensive close merge delete