DeepRead
Cover of XUnit Test Patterns

XUnit Test Patterns

Gerard Meszaros · 2007

Programming and computer science › Testing and legacy code

#5,331 most recommended

About the book

Automated software testing, focused on unit tests written with xUnit-style frameworks. It catalogs named patterns for building, organizing, and maintaining test code, along with the test smells that signal trouble and the refactorings that address them. Its scope is the test code itself: how tests are structured, how fixtures and test doubles are set up, and how results are verified. The central claim is that test code deserves the same design care as production code, and that a shared vocabulary of named patterns makes tests easier to write, read, and maintain. The book holds that common problems such as fragile, obscure, or slow tests have recognizable causes that can be diagnosed from their smells and corrected through specific refactorings. It also draws fine distinctions between kinds of test doubles, such as mocks, stubs, and fakes, and argues that choosing the right one affects both test clarity and what the test actually verifies.

Written by Claude from what it knows of this book.

What Hacker News says 71% recommend · 0% critical

02420092015202020252017 peak · 2
This bookAverage book in Testing and legacy code

In the commenters’ own words

What Open Library readers say 4.50 from 2 ratings

  1. 51
  2. 41
  3. 30
  4. 20
  5. 10
  • 10 want to read
  • 0 reading
  • 3 have read

Only 2 ratings: treat the average as a hint.

Open Library’s page for the book

What critics say, via Wikipedia

No Wikipedia article about this book yet, so no critics to quote.

Reddit communities — coming later

The threads it came up in

Details

First published
2007
ISBN
9780131495050
Editions known
6 at Open Library
Open Library
OL7951794W

Computer TechnologyComputer softwareComputer software, developmentNonfictionSoftware patternsTesting

Explore in the mosaic

Read next: its neighbours on the mosaic