Buying Options
Unit Test Frameworks
Print $29.95
Add to Cart
Print+Ebook $32.95
Add to Cart
Ebook $23.99
Add to Cart
Safari Books Online
Add to Cart
What is this?
Print £22.99
Add to Cart
What is this?
Description
This is the only book to explore unit testing as a language-independent, standalone development methodology. It covers the theory and methodology of unit test frameworks, offers instruction in unit test development, provides useful code examples in both Java and C++, and details the most commonly used frameworks from the XUnit family, including JUnit for Java, CppUnit for C++, and NUnit for .NET. It also includes the complete source code for CppUnit for C++ and NUnit for .NET.
Full Description
Table of Contents
  1. Chapter 1 Unit Test Frameworks: An Overview

    1. Test Driven Development

    2. Unit Testing and Quality Assurance

    3. Homegrown Unit Testing

  2. Chapter 2 Getting Started: Tutorial

    1. Outline of an Application: the Virtual Library

    2. Example 1: Create a Book

    3. Example 2: Create a Library

  3. Chapter 3 The xUnit Family of Unit Test Frameworks

    1. xUnit Family Members

    2. xUnit Extensions

    3. The xUnit Architecture

    4. xUnit Architecture Summary

  4. Chapter 4 Writing Unit Tests

    1. Types of Asserts

    2. Defining Custom Asserts

    3. Single Condition Tests

    4. Testing Expected Errors

    5. (Not) Testing Get/Set Methods

    6. Testing Protected Behavior

    7. Test Code Organization

    8. Mock Objects

    9. AbstractTest

    10. Performance Tests

    11. New Library and Book Code

  5. Chapter 5 Unit Testing GUI Applications

    1. Library GUI

  6. Chapter 6 JUnit

    1. Overview

    2. Architecture

    3. Usage

    4. Test Assert Methods

  7. Chapter 7 CppUnit

    1. Overview

    2. Architecture

    3. Usage

    4. Test Assert Methods

  8. Chapter 8 NUnit

    1. Overview

    2. Architecture

    3. Usage

    4. Test Assert Methods

  9. Chapter 9 PyUnit

    1. Overview

    2. Architecture

    3. Usage

    4. Test Assert Methods

  10. Chapter 10 XMLUnit

    1. Overview

    2. Architecture

    3. Usage

    4. Test Assert Methods

  11. Chapter 11 Resources

    1. Web Sites

    2. Discussion Groups

    3. Books

  1. Appendix A Simple C++ Unit Test Framework

    1. Example 1: Create a Book

    2. Example 2: Create a Library

  2. Appendix B JUnit Class Reference

  3. Appendix C CppUnit Class Reference

  4. Colophon

View Full Table of Contents
Product Details
Title:
Unit Test Frameworks
By:
Paul Hamill
Publisher:
O'Reilly Media
Formats:
  • Print
  • Ebook
  • Safari Books Online
Print Release:
November 2004
Ebook Release:
February 2009
Pages:
216
Print ISBN:
978-0-596-00689-1
| ISBN 10:
0-596-00689-6
Ebook ISBN:
978-0-596-10482-5
| ISBN 10:
0-596-10482-0
Customer Reviews
About the Author
  1. Paul Hamill

    Paul Hamill is a highly experienced software developer with more than ten years of experience developing code using C/C++, Java, and other languages. He has a BS ME from Cornell University and an MS EE from the University of Colorado, and is the published co-author of several academic papers on advanced CAD software. His recent experience includes work on a number of small entrepreneurial software development teams relying on eXtreme Programming (XP) and unit testing methodologies.

    View Paul Hamill's full profile page.

Colophon

Our look is the result of reader comments, our own experimentation, and feedback from distribution channels. Distinctive covers complement our distinctive approach to technical topics, breathing personality and life into potentially dry subjects. The animal on the cover of Unit Test Frameworks is a Norway rat. Contrary to its name, the Norway rat's origins are in Asia; over the centuries, it has spread throughout the world. It is often blamed for transmitting the Black Plague through Europe, but another species, the black rat, is actually responsible for this. The Norway rat's appearance includes a brown or dark gray coat with a white or grayish underside, pointed ears, a long snout, and a scaly tail. It averages about 9 to 10 inches in length. It builds its own nest of twigs and leaves and is mostly nocturnal. It makes its habitat where food is most accessible and is typically found in cities, where it can root through garbage; near farms where it can forage through the harvest; and near the ocean, where it can eat fish, seaweed, and the like. It lives among large groups of other rats, usually with one male designated as the leader.

Along with the common house mouse, the Norway rat is the most popular animal model for scientific lab testing. (The lab rats are usually albino, however.) It is useful because its metabolism is very much like a human's and the rats often are affected by the same diseases and sicknesses as humans. Mary Brady was the production editor and the copyeditor for Unit Test Frameworks. Colleen Gorman proofread the book. Matt Hutchinson and Claire Cloutier provided quality control. Ellen Troutman-Zaig wrote the index.

Ellie Volckhausen designed the cover of this book, based on a series design by Edie Freedman. The cover image is a 19th-century engraving from the Dover Pictorial Archive. Clay Fernald produced the cover layout with QuarkXPress 4.1 using Adobe's ITC Garamond font. David Futato designed and produced the CD label using Adobe InDesign CS.

Melanie Wang designed the interior layout, based on a series design by David Futato. This book was converted by Julie Hawks to FrameMaker 5.5.6 with a format conversion tool created by Erik Ray, Jason McIntosh, Neil Walls, and Mike Sierra that uses Perl and XML technologies. The text font is Linotype Birka; the heading font is Adobe Myriad Condensed; and the code font is LucasFont's TheSans Mono Condensed. The illustrations that appear in the book were produced by Robert Romano and Jessamyn Read using Macromedia FreeHand MX and Adobe Photoshop CS. This colophon was written by Mary Brady.

  • Book cover of Unit Test Frameworks