Curated Tech Reading Map

Find your next tech book to read

Book

Unit Testing Principles, Practices, and Patterns

Vladimir Khorikov

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

Summary

Vladimir Khorikov gives a vocabulary for judging whether a test is actually worth keeping, built around four pillars: protection against regressions, resistance to refactoring, fast feedback, and maintainability. It isn't an introduction to testing basics. It assumes you already write tests, then pushes into mock overuse, brittle assertions, and the anti-patterns that quietly erode a suite's value over time. Examples are in C#, but the reasoning is language-agnostic, and later chapters extend the same four-pillar framework to integration and database tests.

Target Readers

  • Developers who already write unit tests but suspect their suite is brittle or slow, and want a framework for diagnosing why
  • Engineers who over-rely on mocks and want a principled way to decide when a mock helps versus when it just couples the test to implementation details
  • Teams introducing integration tests alongside unit tests and needing a shared standard for what makes either one worth keeping

Tags

#testing#test-quality#anti-patterns

Colophon

Publisher
マイナビ出版
ISBN
978-4839981723
Published
Dec 2022
List price
¥4,488incl. taxMay differ from the actual selling price on Amazon

Get this book

* The link above is an advertisement via Amazon Associates.

Prerequisites

Next Books