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

ROS node unit testing

asked 2017-06-18 10:20:53 -0500

thinwybk gravatar image

updated 2018-09-15 16:58:38 -0500

130s gravatar image

The content in the wiki about "ROS node unit testing" is spread over a lot of pages which are hardly referencing each other e.g. rostest nodes (hztest, selftest, publishtest, paramtest) / mock_objects (provide mocks for a service server, a message subscriber and an actionlib server) / range tests (specific to the pandora platform) / integrating other test frameworks than gtest with rostest (for asserting or mocking). In addition it is not always clear if the pages contain information which are still valid e.g. the wiki page about interface_testing (last edited 2011-08-04) references a package "interface_tester" which seems to be not existing.

Are there any other resources (books, articles, open source code, etc.) where I can find information about the current state of the art of "ROS node unit testing" from a technical point of view (it is not about the methodical point of view aka what to test)?

edit retag flag offensive close merge delete

Comments

rostest test nodes: hztest, paramtest and publishtest

thinwybk gravatar image thinwybk  ( 2017-06-25 05:09:36 -0500 )edit

diagnostics/selftest example - example of a self test with the diagnostics/self_test package (is no rostest test node)

thinwybk gravatar image thinwybk  ( 2017-06-25 05:23:29 -0500 )edit

Ros-Test-Example - Unit tests (class under test: topic publisher and subscriber) with gtest and node integration tests with rostest (used test nodes: hztest).

thinwybk gravatar image thinwybk  ( 2017-06-25 05:23:44 -0500 )edit
1

I know that you asked this a while ago, but you may get responses if you break this question into four separate questions (one for each bullet point). Or, if you have the answers now you can post them.

jayess gravatar image jayess  ( 2017-09-13 16:30:34 -0500 )edit

To some degree I have the answers and am going to add them to a GitBook page ( wiki.ros.org is not suitable for me due to several reasons).

thinwybk gravatar image thinwybk  ( 2017-09-14 01:06:50 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted
2

answered 2018-12-14 02:08:55 -0500

Are there any other resources (books, articles, open source code, etc.) where I can find information about the current state of the art of "ROS node unit testing" from a technical point of view (it is not about the methodical point of view aka what to test)?

The ROS Software Quality Hub, and more specifically the Tutorial section, is the central point where all ROS specific quality related information is gathered.

edit flag offensive delete link more
0

answered 2018-09-15 17:07:54 -0500

130s gravatar image

updated 2018-09-15 21:07:07 -0500

I agree with @jayess' comment - you're raising a list of good questions IMO, and you should split into multiple threads to get more meaningful response and visibility (as of today this thread has 0 answer).

I think what has been commonly done is the latter; rospy library already covers a lot of tools that are provided often separately in commadnline. rosmsg, rosnode, rostopic have their own Python api (see each linked pages). That said I don't find a necessity for rostest to wrap many command line tools.

edit flag offensive delete link more

Question Tools

6 followers

Stats

Asked: 2017-06-18 10:20:53 -0500

Seen: 4,094 times

Last updated: Dec 14 '18