An example of testing C++ ROS2 nodes (ie., ROS2 integration test or level 2 unit testing) using the catch2 framework. First, move this directory to the src/ folder of your colcon workspace. This is ...
bash_unit allows you to write unit tests (functions starting with test), run them and, in case of failure, displays the stack trace with source file and line number indications to locate the problem.