Link Search Menu Expand Document

Unit Testing

Code that is covered by unit tests is more dependable than code that is not. That being said, unit tests were created to allow us to validate the functionality of each function with ease. This is so that if the programme didn’t perform as planned, it would be simple to pinpoint the source of the problem rather than having to sift through a large codebase. Although unit testing may appear to be a time-consuming process initially, but the benefits are evident in the long term.

Unit tests for Gestro were built using the Google Unit Test Framework, which are all located in the tests directory.

In order to run the unit tests, first install Gestro following the instructions from our installation guide. Then, run the following command in a terminal:

cd ~/Gestro && sudo make test

Copyright © 2022; ENG5220 - Real-Time-Embedded-Systems - Team 26:
Tushar Anil Mittal, Tian Jie Wong, Muhatasim Intisar, Ruoqi Sun
Distributed by a GNU GPL-3.0 license.