Encyclopedia > Unit testing

  Article Content

Unit test

Redirected from Unit testing

In computer programming, a unit test is a method of testing a source code module, preferably before the module to be tested is implemented.

The idea is to write test cases for every function or method in the module so that each test case is separate from others if possible. After completion of the unit test it is easy to check if the module is working properly. Unit testing also allows the programmer to refactor code at a later date, and make sure the module still works correctly (regression testing).

The unit testing concept is part of the Extreme Programming method of software engineering. Various unit testing frameworks, based on a design by Kent Beck, have come to be known as xUnit testing frameworks and are available for many programming languages and development platforms. Unit testing is related to test driven development[?] (TDD).

See also

External links



All Wikipedia text is available under the terms of the GNU Free Documentation License

 
  Search Encyclopedia

Search over one million articles, find something about almost anything!
 
 
  
  Featured Article
Northampton, Suffolk County, New York

... is spread out with 29.3% under the age of 18, 9.6% from 18 to 24, 30.3% from 25 to 44, 20.9% from 45 to 64, and 9.8% who are 65 years of age or older. The median ...

 
 
 
This page was created in 33.1 ms