Hooked on Testing

Hooked on Testing

How to Overcome Anxiety and Get Addicted to Testing Your Code

About the Book

This is a book about testing. Wait — keep reading! I promise it's different than the polarizing rhetoric that divides the developer community.

I’ve been approached by developers for years who have asked for help becoming better testers. They see me as a pragmatic voice within this heated debate. I use testing every day. My code is clean. I haven't used a debugger to verify my code since 2004. But I also know that testing can suck. You write twice as much code and only half of it runs in production. If you're not used to testing, your pace of work is slow. Unbearably slow. Which can be incredibly frustrating and expensive in this "time is money" industry. And while testing can help mitigate bugs, it will never completely eliminate the risk. The harsh reality is that your users will always be better at finding bugs than you.

You probably already know a little bit about the mechanics of testing. Like the types of tests — unit tests, integration tests, functional tests, and acceptance tests. You want to use test driven development (TDD) to slowly build up a suite of tests while writing your code, but you just can't seem to make the transition. You want to test more and can likely list off the string of benefits to having tests — how much safer it is to refactor, how much less stressful deployments are, how easy it is to figure out which team member is responsible to for introducing a test failure, and how continuous integration helps to make sure that the test suite works in more than one environment. You've read books, skimmed blog articles, watched screencasts, and attended conference talks, but when you look at your daily work flow, for some reason testing isn't in it.

What's the holdback? Talking about mechanics does nothing if you can't figure out how to make it work into your every day life. Testing is a habit, and building habits is hard. This book will look beyond the "should I or shouldn't I" argument of testing, and discuss techniques about starting to:

  • Make testing part of a daily routine
  • Build a second nature impulse
  • Use tests to solve problems

While also NOT:

  • Feeling like you write twice as much code and get half as much done
  • Rewriting the entire test suite when something small changes
  • Testing frivolous things

Once you read this book, you'll have a clear roadmap of small behavioral changes you can immediately implement to help build your testing habit.

About the Author

M. Scott Ford
M. Scott Ford

M. Scott Ford has been practicing test driven development for about 10 years and has been trying to spread the love of testing for just as long. He currently works as the Technical Lead at Rails Dog where he builds e-commerce websites using Spree and is actively championing software craftsmanship practices internally. In his spare time, Scott helps out on Bundler, consumes copious amounts of anime, and loves spending time teaching his new baby how to code.

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.

You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!

So, there's no reason not to click the Add to Cart button, is there?

See full terms...

80% Royalties. Earn $16 on a $20 book.

We pay 80% royalties. That's not a typo: you earn $16 on a $20 sale. If we sell 5000 non-refunded copies of your book or course for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earnedover $13 millionwriting, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

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. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub