
XUnit Test Patterns
Gerard Meszaros · 2007
Programming and computer science › Testing and legacy code
#5,331 most recommended
Hacker News
8
mentions by 7 people · top 35% of 15,732 books
Open Library
4.50★★★★★★★★★★
2 ratings · 10 want to read
Wikipedia
—
No article yet
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
In the commenters’ own words
Here are my recommendations. Each is a placeholder for a complete discussion :) Psychology of Programming ========================= 1. "Psychology of Computer…
I am indeed learning, working to close those gaps. For automated testing, I'm in the middle of reading Developer Testing by Alexander Tarlinder, with xUnit…
What Open Library readers say 4.50 from 2 ratings
- 51
- 41
- 30
- 20
- 10
- 10 want to read
- 0 reading
- 3 have read
Only 2 ratings: treat the average as a hint.
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
Read next: its neighbours on the mosaic
Test-driven developmentKent Beck · 2002 · recommended by 30 people · named together in 2 comments
Working effectively with legacy codeMichael C. Feathers · 2004 · recommended by 186 people · 2 people recommended both
Elegant ObjectsYegor Bugayenko · 2016 · recommended by 2 people · similar by subject and what people say about it
Growing object-oriented software, guided by testsSteve Freeman · 2010 · recommended by 43 people · similar by subject and what people say about it
Exercises for ProgrammersBrian P. Hogan · 2015 · recommended by 6 people · similar by subject and what people say about it
Pragmatic Thinking and LearningAndy Hunt · 2008 · recommended by 46 people · 2 people recommended both
Design PatternsErich Gamma · 1994 · recommended by 95 people · similar by subject and what people say about it
Patterns of Enterprise Application ArchitectureMartin Fowler · 2002 · recommended by 34 people · similar by subject and what people say about it
RefactoringMartin Fowler · 1999 · recommended by 94 people · similar by subject and what people say about it
Refactoring to PatternsJoshua Kerievsky · 2004 · recommended by 15 people · similar by subject and what people say about it
The art of unit testingRoy Osherove · 2009 · recommended by 12 people · similar by subject and what people say about it
Agile Software Development, Principles, Patterns, and PracticesRobert C. Martin · 2002 · recommended by 7 people · similar by subject and what people say about it
Implementation patternsKent Beck · 2007 · recommended by 6 people · similar by subject and what people say about it
Lessons learned in software testingCem Kaner · 2001 · recommended by 4 people · similar by subject and what people say about it
Unit TestingVladimir Khorikov · 2020 · recommended by 3 people · similar by subject and what people say about it
Effective Software TestingMauricio Aniche · 2022 · recommended by 2 people · similar by subject and what people say about it
The art of agile developmentJames Shore · 2007 · recommended by 13 people · similar by subject and what people say about it
Apprenticeship PatternsDave H. Hoover · 2009 · recommended by 16 people · similar by subject and what people say about it
The art of software testingGlenford J. Myers · 1979 · recommended by 6 people · similar by subject and what people say about it
Growing object-oriented softwareSteve Freeman · 2009 · recommended by 16 people · similar by subject and what people say about it
Extreme programming explainedKent Beck · 1999 · recommended by 23 people · similar by subject and what people say about it
Nine algorithms that changed the futureJohn MacCormick · 2012 · recommended by 4 people · loosely similar by subject
Smalltalk best practice patternsKent Beck · 1997 · recommended by 17 people · similar by subject and what people say about it
JUnitKent Beck · 2004 · recommended by 0 people · similar by subject and what people say about it