unit test

A test that checks each feature of your application in isolation to make sure the feature works as expected. A unit test should provide you with the anticipated responses to a given set of user input, showing that the feature is able to handle both correct and incorrect input.