Book
Unit Testing Principles, Practices, and Patterns
Vladimir Khorikov
Summary
保守性が高く価値のあるテストを論理的に定義し、 リファクタリング耐性を損なうアンチパターンを避ける実践ガイド。
Target Readers
- テスト品質を向上させたいエンジニア
- テスト保守コストの課題に直面している開発者
Tags
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.Related Books
Prerequisites
- Recommended
Clean Architecture
Robert C. Martin
Reason: Learning an architecture that controls the direction of dependencies makes you want testing principles that maximize the resulting testability. Unit Testing: Principles, Practices, and Patterns defines what a good test is, converting the loose coupling your architecture enables into testing value.
Sources
- Recommended
Spring徹底入門
株式会社NTTデータ
Reason: Once you can write applications with Spring, you learn the principles for writing unit tests that guarantee their behavior correctly. Understanding not just the quantity of tests but their quality—what to verify and what to mock—lets you grow a test suite that is resilient to change and not brittle.
- Recommended
テスト駆動開発
Kent Beck
Reason: Once the small TDD cycle makes writing working tests second nature, you advance to principles of what and at what granularity to test. Good tests are resistant to refactoring, do not get in its way, and reliably catch regressions.
Next Books
- Recommended
Web APIテスト技法
Testing Web APIs
Mark Winteringham
Reason: Having mastered unit testing principles, you broaden your view to a testing strategy for APIs that cross service boundaries. Testing Web APIs shows how to balance the upper layers of the test pyramid—integration, contract, end-to-end—securing the API reliability that unit tests alone can't protect.
- Recommended
Effective Software Testing
A developer's guide
Maurício Aniche
Reason: After grasping the qualities of good tests—protection against regressions, resistance to refactoring, fast feedback—you raise the question of what to test with systematic techniques like boundary analysis, equivalence partitioning, and structural testing. Case selection moves from intuition to engineering.
- Recommended
フルスタックテスティング
Gayathri Mohan
Reason: Once unit tests form a solid base, you stack integration, contract, and end-to-end tests in the right proportions along the test pyramid, scaling up to a system-wide quality strategy. The rule is many at the bottom, few at the top.
- Recommended
フロントエンド開発のためのテスト入門
吉井健文
Reason: The principles of test design carry over to the frontend. Building on the test pyramid, you cover the essentials of the UI with a few end-to-end tests and protect logic densely with unit tests—the criteria stay the same across layers.
- Related
レガシーコード改善ガイド
Michael C. Feathers
Reason: After grasping the principles of good tests, you apply them to legacy code that resists testing. You introduce seams to break dependencies and pin current behavior with characterization tests before changing it safely.
- Related
実践テスト駆動開発
Steve Freeman, Nat Pryce
Reason: Once you can judge the quality of an individual test, you extend to a design approach that grows object responsibilities and collaboration through tests. Choosing the right test double becomes feedback on the design itself.