Example package for ROS-testing the package and implementing a github workflow.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
- ROS noetic
- rostest
- Clone repo into catkin_ws/src
- build ws
Add own remote to see github workflow after pushing.
For running the example test via command line:
rostest test_packages_tutorial load_param.test
For changing how and when github is testing the package: Modify ci-focal-action.yml
- New Test Cases can be added in test_params.py, using unittest or by creating a new test_node.
- A launch file for testing has to be created (example: load_param.test). Modify CMakeLists.txt for testing:
if (CATKIN_ENABLE_TESTING)
find_package(rostest REQUIRED)
# catkin_download_test_data()
add_rostest(test/load_param.test)
# add_rostest(tests/your_rostest.test ARGS arg1:=true arg2:=false)
endif()