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

Revision history [back]

I've found some examples in https://github.com/ros/ros_tutorials/tree/hydro-devel/rospy_tutorials/test

for instance: https://github.com/ros/ros_tutorials/blob/hydro-devel/rospy_tutorials/test/test_add_two_ints.py

I suppose that these are enough to start. However, if anyone knows better examples and he/she is willing to share them, please feel free to post them!

I've found some examples in https://github.com/ros/ros_tutorials/tree/hydro-devel/rospy_tutorials/test

for instance: https://github.com/ros/ros_tutorials/blob/hydro-devel/rospy_tutorials/test/test_add_two_ints.py

I suppose that these are enough to start. However, if anyone knows better examples and he/she is willing to share them, please feel free to post them!

Edit I have also found this: https://github.com/jfstepha/test_knex_ros/blob/master/nodes/test_range_filter.py

which I believe that shows a bit better how unittesting is carried out in a regular project.

I've found some examples in https://github.com/ros/ros_tutorials/tree/hydro-devel/rospy_tutorials/test

for instance: https://github.com/ros/ros_tutorials/blob/hydro-devel/rospy_tutorials/test/test_add_two_ints.py

I suppose that these are enough to start. However, if anyone knows better examples and he/she is willing to share them, please feel free to post them!

Edit

I have also found this: https://github.com/jfstepha/test_knex_ros/blob/master/nodes/test_range_filter.py

https://github.com/jfstepha/test_knex_ros/blob/master/nodes/test_range_filter.py which I believe that shows a bit better how unittesting is carried out in a regular project.