Curated Tech Reading Map

Find your next tech book to read

Book

xUnit Test Patterns

Refactoring Test Code

Gerard Meszaros

Buy on Amazon* The link above is an advertisement via Amazon Associates.

Summary

A pattern catalog for automated test code written with xUnit-family frameworks. The publisher says it feels like three books in one. The first part is a narrative tutorial: goals, philosophy and principles of test automation, test strategy, xUnit basics, transient and persistent fixture management, result verification, test doubles, test organization, and testing with databases. The second part catalogs 18 test smells, grouped as code smells, behavior smells and project smells, with guidance for tracing each to its cause. The third part describes 68 patterns in detail, from fixture setup and teardown to test doubles and design for testability, with refactoring instructions and code samples in several programming languages.

Target Readers

  • Developers who write automated tests with an xUnit-family framework, whether test-first or test-last
  • Testers and managers on teams that use automated tests in an agile or conventional development process

Tags

#testing#test-quality#refactoring

Colophon

Publisher
Addison-Wesley Professional
ISBN
978-0-13-149505-0
Published
May 2007

Get this book

* The link above is an advertisement via Amazon Associates.

Prerequisites

Next Books