rostest error: Test Fixture Nodes failed to launch
Hello. I am a newbie on ROS. I tried to test some codes with rostest, but error occured. Would you give me some clues to fix it? Thank you. The error message is:
mech-user@test1-pc:~/2015-soft3/20150930/src/beginner_tutorial$ rostest ./check1.test
... logging to /home/mech-user/.ros/log/rostest-test1-pc-7453.log
[ROSUNIT] Outputting test results to /home/mech-user/.ros/test_results/beginner_tutorial/rostest-check1.xml
testtalker_listener ... FAILURE!
FAILURE: Test Fixture Nodes ['talker', 'listener'] failed to launch
File "/usr/lib/python2.7/unittest/case.py", line 331, in run
testMethod()
File "/opt/ros/indigo/lib/python2.7/dist-packages/rostest/runner.py", line 120, in fn
self.assert_(not failed, "Test Fixture Nodes %s failed to launch"%failed)
File "/usr/lib/python2.7/unittest/case.py", line 424, in assertTrue
raise self.failureException(msg)
--------------------------------------------------------------------------------
[ROSTEST]-----------------------------------------------------------------------
[testtalker_listener][failed]
SUMMARY
* RESULT: FAIL
* TESTS: 0
* ERRORS: 0
* FAILURES: 1
ERROR: The following tests failed to run:
* testtalker_listener
rostest log file is in /home/mech-user/.ros/log/rostest-test1-pc-7453.log
It looks like there's an error in your test file. Please edit your question to include your
check1.test
file.I got the
Test Fixture Nodes
error I think because the nodes were from a package not installed on the system (jenkins CI), adding their package to<test_depend>
appeared to fix it.(It seems to be the general rule with automated tests in cloud CI that useful error messages are put somewhere inaccessible like a log file that the user can't access, you can't ssh into CI runner to view them, or in the best case are somewhere in the middle of thousands of lines of CI console output...)