
The art of unit testing
Roy Osherove · 2009
Programming and computer science › Testing and legacy code
#2,536 most recommended
Hacker News
18
mentions by 17 people · top 18% of 15,732 books
Open Library
3.67★★★★★★★★★★
3 ratings · 5 want to read
Wikipedia
50
article views a month
About the book
A practical guide to writing, organizing, and maintaining unit tests for working developers, with examples mostly in C# on the .NET platform. It covers the mechanics of test code, such as structure, naming, and test doubles, and how to bring testing into a team's everyday development process. Unit tests are only worth their cost when they are readable, trustworthy, and easy to maintain, so the book pushes for consistent conventions in how tests are named, structured, and isolated. It argues that isolating the unit under test from its dependencies with stubs, fakes, and mocks is what keeps tests fast and focused. It also treats testing legacy code that was not written with tests in mind as a real, workable problem rather than an excuse to skip testing.
Written by Claude from what it knows of this book.
What Hacker News says 71% recommend · 0% critical
In the commenters’ own words
I've gathered all the book titles in this thread and created Amazon affiliate links (if you don't mind. Otherwise you still have all the titles together :-) )…
I put together a reading list of the best writing on automated testing I know. Most of this is agnostic wrt the language you use, though of course examples…
What Open Library readers say 3.67 from 3 ratings
- 50
- 42
- 31
- 20
- 10
- 5 want to read
- 0 reading
- 5 have read
Only 3 ratings: treat the average as a hint.
What Wikipedia says
- published 2013
- 50 views a month
Reddit communities — coming later
The threads it came up in
Details
- First published
- 2009
- ISBN
- 9781617290893
- Editions known
- 4 at Open Library
- Open Library
- OL16941193W
Computer softwareDevelopmentMicrosoft .NETMicrosoft .NET FrameworkTesting
Read next: its neighbours on the mosaic
Software RunawaysRobert L. Glass · 1997 · recommended by 3 people · 2 people recommended both
Working effectively with legacy codeMichael C. Feathers · 2004 · recommended by 186 people · 3 people recommended both
The Practice of ProgrammingBrian W. Kernighan · 1999 · recommended by 90 people · 2 people recommended both
The Art of Readable CodeDustin Boswell · 2011 · recommended by 11 people · similar by subject and what people say about it
Patterns, Principles, and Practices of Domain-Driven DesignScott Millett · 2015 · recommended by 1 person · loosely similar by subject
The Mythical Man-MonthFrederick P. Brooks · 1975 · recommended by 383 people · 3 people recommended both
Component softwareClemens Szyperski · 1997 · recommended by 3 people · similar by subject and what people say about it
Clean CodeRobert C. Martin · 2008 · recommended by 298 people · 2 people recommended both
Code CompleteSteve McConnell · 1993 · recommended by 393 people · 2 people recommended both
Beautiful CodeAndy Oram · 2007 · recommended by 48 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
Test-driven developmentKent Beck · 2002 · recommended by 30 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
The art of software testingGlenford J. Myers · 1979 · recommended by 6 people · similar by subject and what people say about it
XUnit Test PatternsGerard Meszaros · 2007 · recommended by 5 people · similar by subject and what people say about it
Head First design patternsEric Freeman · 2004 · recommended by 65 people · 2 people recommended both
Making SoftwareAndy Oram · 2010 · recommended by 12 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
RefactoringMartin Fowler · 1999 · recommended by 94 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
Writing solid codeSteve Maguire · 1993 · recommended by 18 people · similar by subject and what people say about it
Java PerformanceScott Oaks · 2014 · recommended by 2 people · loosely similar by subject
Design PatternsErich Gamma · 1994 · recommended by 95 people · similar by subject and what people say about it
Debugging the development processSteve Maguire · 1994 · recommended by 6 people · similar by subject and what people say about it