To my wife, Tal, and my sons, Itamar and Aviv—my family
Copyright
Brief Table of Contents
Table of Contents
List of Figures
List of Tables
List of Listings
Early Praise for The Art of Unit Testing
Foreword
Preface
Acknowledgments
About this book
About the cover illustration
1. Getting started
Chapter 1. The basics of unit testing
Chapter 2. A first unit test
2. Core techniques
Chapter 3. Using stubs to break dependencies
Chapter 4. Interaction testing using mock objects
Chapter 5. Isolation (mock object) frameworks
3. The test code
Chapter 6. Test hierarchies and organization
Chapter 7. The pillars of good tests
4. Design and process
Chapter 8. Integrating unit testing into the organization
Chapter 9. Working with legacy code
Appendix A. Design and testability
Appendix B. Extra tools and frameworks
Appendix Test Review Guidelines
Index
1.1. Unit testing—the classic definition