Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Software Style: Testing

Alan Chung Ma edited this page Apr 30, 2022 · 1 revision

TODO(Issue #1): Please refactor this section HEAVILY. Feel free to use from what is already here but this needs a complete overhaul.

Simulation

RViz https://www.stereolabs.com/docs/ros/rviz/ Gazebo + ROS

Unit Testing

TODO

In addition to simulation testing, writing unit tests is important for a few reasons:

  • Validates the code is doing what you want it to
  • Forces you to break up the code into logical parts (i.e. Single responsibility principle)
  • Serves as a great form of documentation for the code you have tests for.
  • Ensures that changes in the future don’t break the code in case it looks like it works in simulation

ROS Unit Testing Guides

In addition, we recommend reading the chapters “Testing Overview” and “Unit Testing” from the book “Software engineering at Google”. The book is available as an e-copy through the Purdue library.