Unit test is simple way to test the smallest unit of code, usually a method or function.

It was made popular with libraries like JUnit used in Java.