Unit Test Cases
Producing a test specification, including the design of test cases, is the level of test
design which has the highest degree of creative input. Furthermore, unit test
specifications will usually be produced by a large number of staff with a wide range of
experience, not just a few experts.
This paper provides a general process for developing unit test specifications and then
describes some specific design techniques for designing unit test cases. It serves as a
tutorial for developers who are new to formal testing of software, and as a reminder of
some finer points for experienced software testers.
IPL is an independent software house founded in 1979 and based in Bath. IPL was
accredited to ISO9001 in 1988, and gained TickIT accreditation in 1991. IPL has
developed and supplies the AdaTEST and Cantata software verification products.
AdaTEST and Cantata have been produced to these standards.
This document is the copyright of IPL Information Processing Ltd. It may not be
copied or distributed in any form, in whole or in part, without the prior written
consent of IPL.
Phone: +44 (0) 1225 444888
Fax: +44 (0) 1225 444400
Last Update:03/07/1997 08:21:00
©IPL Information Processing Ltd
The design of tests is subject to the same basic engineering principles as the design of
software. Good design consists of a number of stages which progressively elaborate the
design. Good test design consists of a number of stages which progressively elaborate
the design of tests:
• Test strategy;
• Test planning;
• Test specification;
• Test procedure.
These four stages of test design apply to all levels of testing, from unit testing through to
system testing. This paper concentrates on the specification of unit tests; i.e. the design
of individual unit test cases within unit test specifications. A more detailed description of