Title :
Unit testing in practice
Author :
Ellims, Michael ; Bridge, James ; Ince, Darrel C.
Author_Institution :
Pi Technol., Cambridge, UK
Abstract :
Unit testing is a technique that receives a lot of criticism in terms of the amount of time that it is perceived to take and in how much it costs to perform. However it is also the most effective means to test individual software components for boundary value behavior and ensure that all code has been exercise adequately (e.g. statement, branch or MC/DC coverage). In this paper we examine the available data from three safety related software projects undertaken by Pi Technology that have made use of unit testing. Additionally we discuss the different issues that have been found applying the technique at different phases of the development and using different methods to generate those test. In particular we provide an argument that the perceived costs of unit testing may be exaggerated and that the likely benefits in terms of defect detection are actually quite high in relation to those costs.
Keywords :
object-oriented programming; program testing; boundary value behavior; software component; software projects; unit testing technique; Bridges; Communication system control; Control systems; Costs; Internal combustion engines; Lab-on-a-chip; Performance evaluation; Software safety; Software testing; System testing;
Conference_Titel :
Software Reliability Engineering, 2004. ISSRE 2004. 15th International Symposium on
Print_ISBN :
0-7695-2215-7
DOI :
10.1109/ISSRE.2004.44