ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
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!
2 | No.2 Revision |
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.
3 | No.3 Revision |
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: