Rostest fails when executing with catkin_make run_tests

asked 2018-07-03 04:46:44 -0500

flamurberisha gravatar image

Hello to everyone.

I am facing a problem when executing rostests with catkin_make run_tests. My tests(rostest with gtest) are processing data from gazebo simulation (subscribing to ros topics during simulation). The same test passes if I run with rostest --reuse-master ros_pkg test_node.test, and it passes with catkin_make run_tests_ros_pkg_rostest_launch_test_node.test, it fails only with "catkin_make run_tests", and I need this kind of executing because I want to run all the tests. Why tests fail is because there is no communication with gazebo world, so no data from topics. The macro I am using in CMakeLists is: add_rostest_gtest. Note: Tests fail with catkin_make run_tests like 99% of the time, sometimes they pass.

I am using: ros kinetic roscpp gazebo version 7.13.1 ubuntu 16.04

edit retag flag offensive close merge delete


Hey, did you find a solution in the meantime? We are having exactly the same problem.

Felix Widmaier gravatar image Felix Widmaier  ( 2018-09-26 08:38:19 -0500 )edit