Skip to Content
The Art of Unit Testing
book

The Art of Unit Testing

by Roy Osherove
May 2009
Intermediate to advanced
320 pages
8h 28m
English
Manning Publications

Overview

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

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

The Art of Unit Testing, Third Edition

The Art of Unit Testing, Third Edition

Roy Osherove, Vladimir Khorikov

Publisher Resources

ISBN: 9781933988276Publisher SupportPublisher Website