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

How to write rostests using Python under catkin?

asked 2013-07-15 12:04:51 -0500

hersh gravatar image

This page gives excellent instructions for on how to write and run unit tests for ROS using Python. The trouble is, it is 3 years old and only covers rosbuild, not catkin.

I have seen the docs for catkin_add_nosetests but that doesn't describe interactions with rostest.

Maybe it is as simple as add_rostest() with a test-launch file that includes a python test program?

edit retag flag offensive close merge delete

Comments

1

Here's a small combined rostest and Python example that seems to work: https://github.com/jack-oquin/camera_info_manager_py

joq gravatar image joq  ( 2013-07-15 15:20:13 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2013-07-15 15:04:06 -0500

130s gravatar image

updated 2013-11-28 03:50:29 -0500

In the nice doc @joq is volunteering on, there's also a section about testing that includes rostest integration.


Update) Now looks like the same documentation (?) has been integrated into the official doc (for Hydro).

edit flag offensive delete link more

Comments

1

Thanks for the testimonial, Isaac. I do still need to add more examples for the complex interactions of rostest with gtest and nosetest.

joq gravatar image joq  ( 2013-07-15 15:15:10 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2013-07-15 12:04:51 -0500

Seen: 244 times

Last updated: Nov 28 '13