Unit Test Frameworks

Paul Hamill

買這商品的人也買了...

商品描述

Description:

Unit test frameworks are a key element of popular development methodologies such as eXtreme Programming (XP) and Agile Development. But unit testing has moved far beyond eXtreme Programming; it is now common in many different types of application development. Unit tests help ensure low-level code correctness, reduce software development cycle time, improve developer productivity, and produce more robust software.

Until now, there was little documentation available on unit testing, and most sources addressed specific frameworks and specific languages, rather than explaining the use of unit testing as a language-independent, standalone development methodology. This invaluable new book covers the theory and background of unit test frameworks, offers step-by-step instruction in basic unit test development, provides useful code examples in both Java and C++, and includes details on some of the most commonly used frameworks today from the XUnit family, including JUnit for Java, CppUnit for C++, and NUnit for .NET.

Unit Test Frameworks includes clear, concise, and detailed descriptions of:

  • The theory and design of unit test frameworks
  • Examples of unit tests and frameworks
  • Different types of unit tests
  • Popular unit test frameworks
  • And more

 

Table of Contents:

Preface
1. Unit Test Frameworks: An Overview
      Test Driven Development
      Unit Testing and Quality Assurance
      Homegrown Unit Testing
7. Getting Started: Tutorial
      Outline of an Application: the Virtual Library
      Example 1: Create a Book
      Example 2: Create a Library
18. The xUnit Family of Unit Test Frameworks 18
      xUnit Family Members
      xUnit Extensions
      The xUnit Architecture
      xUnit Architecture Summary
32. Writing Unit Tests 32
      Types of Asserts
      Defining Custom Asserts
      Single Condition Tests
      Testing Expected Errors
      (Not) Testing Get/Set Methods
      Testing Protected Behavior
      Test Code Organization
      Mock Objects
      AbstractTest
      Performance Tests
      New Library and Book Code
51. Unit Testing GUI Applications
      Library GUI
63. JUnit
      Overview
      Architecture
      Usage
      Test Assert Methods
70. CppUnit 70
      Overview
      Architecture
      Usage
      Test Assert Methods
80. NUnit 80
      Overview
      Architecture
      Usage
      Test Assert Methods
88. PyUnit 88
      Overview
      Architecture
      Usage
      Test Assert Methods
97. XMLUnit
      Overview
      Architecture
      Usage
      Test Assert Methods
110. Resources 110
      Web Sites
      Discussion Groups
      Books
113. Simple C++ Unit Test Framework
122. JUnit Class Reference 122
137. CppUnit Class Reference
Glossary
Index