GTest Framework for ROS2
Understand the GTest (Google Test) framework and how to integrate it with ROS2NEW!
In this course, we will talk about GTest basics and how you can use GTest to test robotics applications built on ROS2
What You Will Learn
First, learn the basics of CMake as a build system focusing on making shared libraries and how to link a library to an executable.
Then, GTest is introduced in a step-by-step way that can be easily transferred for use with other packages or software projects. You will dive into test assertions and what assertion types are available.
Continue with ROS2 node unit testing. You will write a publisher and subscriber node in C++ and learn how to test its interfaces using GTest.
Next, you will learn a general method for creating system tests. You will explore how to set up a test environment inside a ROS2 workspace, write a system test with ROS2, and convert and adapt it to suit your system test needs.
Finally, you will practice by applying the knowledge and skills you have learned in this course in a final project. Your goal will be to validate that the software code provided performs as expected.