Why does catkin run_tests run without a error but rostest not?
I created a test_node in a package my_package which tests some other nodes.
If I execute catkin run_tests my_package
all tests run flawlessly.
If I execute rostest my_package my_test_file.test
I get the following error:
FAILURE: Test node [my_package_test] does not exist or is not executable
The testfile my_test_file.test executes the following code:
<test pkg="my_package" test-name="test_mock_node" type="my_package_test"> </test>
Could somebody explain me where the error comes from and how I can fix this?
Today I had the same Error again. Now the problem was that I renamed the executable in my CMake File. The Ros Wiki sazs that there must be a corresponding executable with the same name to the type (here my_package_test) from the launch file. See 1.2.1: http://wiki.ros.org/roslaunch/XML/test