Working Effectively with Unit Tests
Working Effectively with Unit Tests
$9.99
Minimum
$14.99
Suggested
Working Effectively with Unit Tests

Last updated on 2015-01-26

About the Book

tl;dr: This book details my strong opinions on the best way to test, while acknowledging alternative styles and various contexts in which tests are written. Whether you prefer my style or not, this book will help you write better Unit Tests. 

From the Preface:

Over a dozen years ago I read Refactoring for the first time; it immediately became my bible. While Refactoring isn’t about testing, it explicitly states: If you want to refactor, the essential precondition is having solid tests. At that time, if Refactoring deemed it necessary, I unquestionably complied. That was the beginning of my quest to create productive unit tests.
Throughout the 12+ years that followed reading Refactoring I made many mistakes, learned countless lessons, and developed a set of guidelines that I believe make unit testing a productive use of programmer time. This book provides a single place to examine those mistakes, pass on the lessons learned, and provide direction for those that want to test in a way that I’ve found to be the most productive.

The book does touch on some theory and definition, but the main purpose is to show you how to take tests that are causing you pain and turn them into tests that you're happy to work with. If you're like me and enjoy examples, you can take a (free) look at Chapter 1 right now. The foreword, preface, and first 2 chapters are available within The Sample.

Reviews are available at review.wewut.com.

"I trust Jay Fields' opinions about how to write good programmer tests, and so should you." -- J. B. Rainsberger @jbrains

"Buy this. That is all." -- Dan North @tastapod

"This book is a breath of fresh air! Excellent work! The evolution of a hairy test to something really clean is elegant. I wish more people wrote tests like this. Having a book to point people at will really help." -- Joe Walnes @joewalnes

"I just read through what Jay Fields has so far, and it is looking to be really great. I highly recommend it..." -- Corey Haines @coreyhaines

Packages

The Book
  • English

  • PDF

  • EPUB

  • MOBI

  • APP

$9.99
Minimum
$14.99
Suggested
5 Copy Package

This package is for up to 5 copies of Working Effectively with Unit Tests

  • English

  • PDF

  • EPUB

  • MOBI

  • APP

$39.99
Minimum
$59.99
Suggested
15 Copy Package

This package is for up to 15 copies of Working Effectively with Unit Tests.

  • English

  • PDF

  • EPUB

  • MOBI

  • APP

$99.99
Minimum
$149.99
Suggested

Bundles that include this book

Talking with Tech Leads
Working Effectively with Unit Tests
2 Books
$24.98
Regular Price
$21.99
Bundle Price
Understanding the Four Rules of Simple Design
Working Effectively with Unit Tests
2 Books
$27.98
Regular Price
$24.99
Bundle Price
Working Effectively with Unit Tests
37 Things One Architect Knows About IT Transformation
2 Books
$22.98
Regular Price
$16.99
Bundle Price

About the Author

Jay Fields
Jay Fields

Jay Fields is a software developer at DRW Trading, conference speaker, and author. He has a passion for discovering and maturing innovative solutions. His most recent work has been in maturing software design through developer testing and software testing in general.

About the Contributors

Graham Nash
Graham Nash

Technical Reviewer

John Hume
John Hume

Technical Reviewer

Martin Fowler
Martin Fowler

Technical Reviewer

Michael Feathers
Michael Feathers

Foreword Author

Patrick Farley
Patrick Farley

Technical Reviewer

Steve McLarnon
Steve McLarnon

Technical Reviewer

The Leanpub Unconditional, No Risk, 100% Happiness Guarantee

Within 45 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.
See full terms

Write and Publish on Leanpub

Authors and publishers use Leanpub to publish amazing in-progress and completed ebooks, just like this one. You can use Leanpub to write, publish and sell your book as well! Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks. Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. It really is that easy.

Learn more about writing on Leanpub