ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I am trying to create simple unit test that does nothing, it always returns the following :

SUMMARY: * RESULT: SUCCESS * TESTS: 0 * ERRORS: 0 [] * FAILURES: 0 []

Output of test results is

<testsuite errors="0" failures="0" name="unittest.suite.TestSuite" tests="0" time="0.000"> <system-out> <system-err> </testsuite>

Are you sure your test is being run? I see TESTS: 0 and also in the xml output: tests="0".

No tests -> always succeed.

ROSTEST : ALWAYS FAILING

<node name="talker" pkg="sample_ros_py" type="talker" output="screen" />

Here it is actually trying to run your test, but if this is a Python script the <node .. type="" .. /> line should probably include the extension.

The error message seems to suggest that rostest can't find your script because of that:

FAILURE: Test node [sample_ros_py/test_topic] does not exist or is not executable

Can you check the name and extension of the Python file?

I am trying to create simple unit test that does nothing, it always returns the following :

SUMMARY: * RESULT: SUCCESS * TESTS: 0 * ERRORS: 0 [] * FAILURES: 0 []

Output of test results is

<testsuite errors="0" failures="0" name="unittest.suite.TestSuite" tests="0" time="0.000"> <system-out> <system-err> </testsuite>
time="0.000">

Are you sure your test is being run? I see TESTS: 0 and also in the xml output: tests="0".

No tests -> always succeed.

ROSTEST : ALWAYS FAILING

<node name="talker" pkg="sample_ros_py" type="talker" output="screen" />

Here it is actually trying to run your test, but if this is a Python script the <node .. type="" .. /> line should probably include the extension.

The error message seems to suggest that rostest can't find your script because of that:

FAILURE: Test node [sample_ros_py/test_topic] does not exist or is not executable

Can you check the name and extension of the Python file?