What do unit tests do?

Unit testing allows the programmer to refactor code at a later date, and make sure the module still works correctly (i.e. Regression testing). The procedure is to write test cases for all functions and methods so that whenever a change causes a fault, it can be quickly identified and fixed.

Read more

What is unit test and why?

A unit test is a way of testing a unit – the smallest piece of code that can be logically isolated in a system . In most programming languages, that is a function, a subroutine, a method or property. The isolated part of the definition is important.

Read more