Book contents
- Frontmatter
- Contents
- Foreword
- Acknowledgments
- Testing IT
- 1 Introduction
- Part 1 The Traditional Testing Process
- 2 An Overview of Testing
- 3 Testing Techniques
- 4 The Management and Planning of Testing
- 5 Unit Testing
- 6 Integration Testing
- 7 System Testing
- 8 Systems Integration Testing
- 9 User Acceptance Testing
- 10 Operations Acceptance Testing
- 11 Regression Testing
- 12 Improving the Testing Process
- 13 Introduction, Adoption, and Maintenance of the Testing Process
- Part 2 The Testing Process in the Real World: Illustrative Case Studies
- Part 3 The Appendices
- References
- Glossary
- Index
5 - Unit Testing
Published online by Cambridge University Press: 06 September 2009
- Frontmatter
- Contents
- Foreword
- Acknowledgments
- Testing IT
- 1 Introduction
- Part 1 The Traditional Testing Process
- 2 An Overview of Testing
- 3 Testing Techniques
- 4 The Management and Planning of Testing
- 5 Unit Testing
- 6 Integration Testing
- 7 System Testing
- 8 Systems Integration Testing
- 9 User Acceptance Testing
- 10 Operations Acceptance Testing
- 11 Regression Testing
- 12 Improving the Testing Process
- 13 Introduction, Adoption, and Maintenance of the Testing Process
- Part 2 The Testing Process in the Real World: Illustrative Case Studies
- Part 3 The Appendices
- References
- Glossary
- Index
Summary
(The Programmer) personally defines the functional and performance specifications, designs the program, codes it, tests it, and writes its documentation…. They need great talent, ten years experience and considerable systems and applications knowledge, whether in applied mathematics, business data handling, or whatever!
Fred P. BrooksOverview
The objective of Unit Testing is to ensure that reliable program units are produced that meet their requirements. The process is also intended to identify errors in program logic. Unit Testing is conducted by the development team under the supervision of the Development Team Leader. Typically, the software engineer or programmer who coded the unit will design and run a series of tests to verify that the unit meets its requirements. Unit Testing may also be termed component testing.
Each unit should be tested individually and in isolation (although it may be necessary to employ a test harness) by exercising its inputs and observing its outputs or behavior. It may also be possible for the unit to be tested using the facilities available in the development environment (such as stepping through the statements of code using a debugger). Once confidence has been established in the unit, it should then be tested in collaboration with other interoperating units.
Unit Testing is typically a White Box Testing activity, based primarily on the functional and data requirements expressed in the requirements specification for the Application Under Test (AUT), as well as any supplementary material (such as design documentation, user guides, or prototype code).
- Type
- Chapter
- Information
- Testing ITAn Off-the-Shelf Software Testing Process, pp. 45 - 52Publisher: Cambridge University PressPrint publication year: 2001