DeepRead
Cover of The art of unit testing

The art of unit testing

Roy Osherove · 2009

Programming and computer science › Testing and legacy code

#2,536 most recommended

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

02420122015202020262016 peak · 4
This bookAverage book in Testing and legacy code

In the commenters’ own words

What Open Library readers say 3.67 from 3 ratings

  1. 50
  2. 42
  3. 31
  4. 20
  5. 10
  • 5 want to read
  • 0 reading
  • 5 have read

Only 3 ratings: treat the average as a hint.

Open Library’s page for the book

What Wikipedia says

  • published 2013
  • 50 views a month

Read the Wikipedia article

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

Explore in the mosaic

Read next: its neighbours on the mosaic