Skip to content

Unit Testing

basheersubei edited this page Nov 9, 2014 · 3 revisions

Here will be shown how to create simple unit test using the gTest framework and ROS.

Intro to Testing

To start off, read this post to get an idea of what testing is and why you need tests. Pretend it's C++, not Python... :)

Then, look at how ROS does testing.

rospy testing

ROS + Python use the module called unittest for testing.

roscpp testing

ROS + C++ use the module called gtest for testing.

Jenkins server for Continuous Integration

We will need to set up some sort of server that continuously tests each piece of code that is added. We will most likely use Jenkins. We're currently setting one up for EDT. Stay tuned...

Clone this wiki locally