Skip to content

ROS Testing

Édouard Denommée edited this page Apr 16, 2019 · 2 revisions

Testing

The bulk of the testing for this project's robotic software is done through the ROS testing framework. Catkin is used to start all of the automated tests. This is done in conjunction with the help of the rostest utilities.

Running tests

To run all of the project's automated tests, simply call catkin_make run_tests in the main workspace where SecurBot's packages are located.

To run specific launch files with their test configuration, run rostest <pkg_name> <launch_file>

Writing tests

Write test nodes in separate source files and commit them in the test/ directory of the package containing the node(s) to be tested. Add the necessary test nodes to the launch files associated with the nodes to be tested. Alternatively if the launch file is only written for testing purposes, name the launch file with the .test extension instead of .launch.

Clone this wiki locally