[ROS2] launch-based testing
Hi all,
Does anyone have some good references for writing launch-based ROS 2 tests ??
The example in launch_testing_ros
is kinda minimalist and I'm annoyed by the fact that the test has to be installed in share
.
Thanks !
As of ROS 2 Dashing, packages in both https://github.com/ros2/system_tests and https://github.com/ros2/demos repositories make extensive use of launch-based ROS 2 tests. For instance, see test_executable_output.py.in in
test_rclcpp
. Note that in this case the test is configured by CMake at build time. This solely obeys to the testing needs oftest_rclcpp
and it is not a requirement for launch-based tests in general. Hope it helps.Hi, thanks for the links ! I'll look at them this week and see if I can find my way out of them.