nanyang-system-developers

Unit Testing

Overview

Unit testing involves testing individual components of software to ensure they work as expected. It helps in identifying bugs early, simplifies debugging, and improves code quality.

Notes

See the chapter on Testing on the types of test cases required for good coverage.

See Testing with unittest to understand how to use the unittest module in Python for writing unit tests.

Python also has other third-party packages for unit testing, such as pytest.