What is the purpose of unit testing?
Unit testing is a crucial part of software development. Failure to conduct unit tests or doing
it with half-hearted measures is likely to create execution problems down the line, costing
more time, money, and human resources to fix the problem. The objectives of unit testing
include:
To verify the accuracy of a section of code
To have separate independent sections of a code
To locate and address bugs early in software development
To Increase the programmer’s understanding of the code base
To be able to effect changes easily
To make code reusability more feasible