Book description
Unit testing, done right, can mean the difference between a failed project and a successful one, between a maintainable code base and a code base that no one dares touch, and between getting home at 2 AM or getting home in time for dinner, even before a release deadline.
The Art of Unit Testing builds on top of what's already been written about this important topic. It guides you step by step from simple tests to tests that are maintainable, readable, and trustworthy. It covers advanced subjects like mocks, stubs, and frameworks such as Typemock Isolator and Rhino Mocks. And you'll learn about advanced test patterns and organization, working with legacy code and even untestable code. The book discusses tools you need when testing databases and other technologies.
About the Technology
About the Book
What's Inside
- How to create readable, maintainable, trustworthy tests
- Stubs, mock objects, and automated frameworks
- Working with .NET tools, including NUnit, Rhino Mocks and Typemock Isolator
About the Reader
Written for .NET developers but others will also benefit from this book.
About the Author
The chief architect at Typemock, Roy Osherove is one of the original ALT.NET organizers. He consults and trains teams worldwide on the gentle art of unit testing and test-driven development. He frequently speaks at international conferences such as TechEd and JAOO. Roy's blog is at ISerializable.com.
Quotes
An important book that should have been written years ago.
- Michael Feathers, Object Mentor
Every book on unit testing ever written has been for amateurs. This is one for professionals.
- Josh Cronemeyer, ThoughtWorks
Serious about software craftsmanship? This book is a must-have for everyone who is.
- Dave Nicolette, Independent Agile Coach
State of the art!
- Gabor Paller, OnRelay Ltd
A thorough, incremental introduction and... ideas for refining [your] technique.
- Kent Beck, Three Rivers Institute
Table of contents
- Copyright
- Dedication
- 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
- Part 1. Getting started
- Chapter 1. The basics of unit testing
- Chapter 2. A first unit test
- Part 2. Core techniques
- Chapter 3. Using stubs to break dependencies
- Chapter 4. Interaction testing using mock objects
- Chapter 5. Isolation (mock object) frameworks
- Part 3. The test code
- Chapter 6. Test hierarchies and organization
- Chapter 7. The pillars of good tests
- Part 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
- Test Review Guidelines
- Index
Product information
- Title: The Art of Unit Testing
- Author(s):
- Release date: May 2009
- Publisher(s): Manning Publications
- ISBN: 9781933988276
You might also like
book
The Art of Unit Testing, Second Edition
The Art of Unit Testing, Second Edition guides you step by step from writing your first …
video
The Art of Unit Testing, 2nd Ed, video edition
"This book is something special. The chapters build on each other to a startling accumulation of …
book
Unit Testing Principles, Practices, and Patterns
Unit Testing Principles, Patterns and Practices shows you how to refine your existing unit tests by …
book
Test Driven Development: By Example
Quite simply, test-driven development is meant to eliminate fear in application development. While some fear is …