unit testing

In computer programming, unit testing is a method by which individual units of source code are tested to determine if they are fit for use. A unit is the smallest testable part of an application. In procedural programming a unit could be an entire module but is more commonly an individual function or procedure. In object-oriented programming a unit is often an entire interface, such as a class, but could be an individual method. Unit tests are created by programmers or occasionally by white box testers during the development process.

Ideally, each test case is independent from the others: substitutes like method stubs, mock objects, fakes and test harnesses can be used to assist testing a module in isolation. Unit tests are typically written and run by software developers to ensure that code meets its design and behaves as intended. Its implementation can vary from being very manual (pencil and paper) to being formalized as part of build automation.

Unit testing on Wikipedia

Missing tests - getting everything tested

Unit tests are not often the first thing on someone’s mind when it comes to coding, unless you are in the small group of developers that have become accustomed to writing tests before writing any code. Thanks to the current project I'm busy with I have joined this group.

Due to a few (lame) reasons, unit testing has never been a high priority on Infinitas. In all the wisdom of hindsight unit t…

Read more...

No more posts