gtest for ROS2
Is there a guide similar to this one that I think it is for ROS that explain how to start writing and using gtest for ROS2 applications?
Also, does calling colcon test run the gtest tests?
ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
Is there a guide similar to this one that I think it is for ROS that explain how to start writing and using gtest for ROS2 applications?
Also, does calling colcon test run the gtest tests?
Hi,
I can't give you a guide but I can give you examples
Really it mostly looks like gtest, just using ROS as if it were any other arbitrary library.
There's a minimal gtest example for ROS2 Humble/Rolling here: https://github.com/PickNikRobotics/test_examples
It probably works on other ROS distros too but I haven't tried it.
Asked: 2020-05-05 09:29:56 -0600
Seen: 3,379 times
Last updated: Nov 18 '22
How to link tests but not executables in a ROS package?
missing rosdeps for gtest and paramiko running OS: Arch
Using rostest with gtest value-parameterized tests
gtest fuerte undefined reference when linking
Linker errors on "make test" on Fuerte [closed]
Simple answer: yes
can you point me where to find that guide?