UnitTest is an automated test that verifies correctness at the level of functions and modules. It makes it easier to catch bugs early in small units and also serves as a safety net when specifications change.