
What is Unit Testing?
-
Unit testing is the testing of an individual unit or group of related units.
- It falls under the class of white box testing.
- It is often done by the programmer to test that the unit he/she has implemented is producing expected output against given input.
- Typically done by the programmer and not by testers, as it requires detailed knowledge of the internal program design and code.
Benefits of Unit Testing:
- Finds problems early
- Facilitates change
- Simplifies integration
- Documentation
- Design