small medium large xlarge

Continuous Testing with Ruby: Better Software Through Faster Feedback

September 22, 2010

Feedback. We’re always telling you that you need feedback, with a short feedback gap—the time it takes to get feedback on your decisions, your code, your designs. Well, what if you narrowed the feedback gap to near zero while coding? You’d have continuous testing, a powerful idea that lets you fix bugs while they’re still small and fresh.

Continuous Testing with Ruby shows you how to use a combination of tests, tools, and techniques to immediately detect problems in code, before they spread. Now available in beta from

Tell your friends! Tweet this

Continuous Testing with Ruby: Better Software Through Faster Feedback

Now you can immediately detect problems in code—before it’s too late, and before problems spread. It isn’t magic, but a clever combination of tests, tools, and techniques that tells you right away when there’s a problem. Not minutes, hours or days from now, but right now, when it’s easiest to fix. Spend more of your time writing valuable software, and less time slogging through code line-by-line and second-guessing your decisions.

We’ll show you how to set up and run automated tests that check your work continuously as you write code. You’ll start with tools such as Autotest and Watchr, and see how to use them effectively in a continuous environment. You’ll discover the fundamentals of creating and maintaining a test suite that’s Fast, Informative, Reliable, and Exhaustive. You’ll use powerful techniques such as inline assertions—a much better alternative to debugging or console printing. You’ll even use Ruby’s metaprogramming features to quickly find and diagnose problems using existing tests.

Check out the sample chapters online at

But continuous testing isn’t limited to just Ruby; we’ll show you how to extend these ideas and tools to other languages and frameworks, including Ruby on Rails and JavaScript. You’ll be able to create feedback loops that validate decisions made outside of your code: you can automatically verify Rails migrations, instantly check changes to stylesheets and views, and quickly validate documentation, seed data, and other essential configuration and settings.

Many developers today struggle to gain all the benefits of automated testing, due to poorly written or incomplete tests. Continuous Testing with Ruby shows how you can improve the quality of your existing tests and ensure the new tests that you write will do the job. By giving you instant feedback about the quality of your code and the quality of your tests, continuous testing creates a visceral feedback loop that you can actually feel as you work.

Start Continuous Testing with Ruby today.

Available now in beta in PDF, epub, and mobi formats from

Coming Soon:

  • iPad Programming: A Quick-Start Guide for iPhone Developers in print
  • The RSpec Book: Behaviour Driven Development with RSpec, Cucumber, and Friends in print. Updated for Rails 3 and RSpec 2
  • Agile in a Flash

Recently Released:

  • The Agile Samurai: How Agile Masters Deliver Great Software [in print]
  • Pragmatic Guide to JavaScript [in beta]
  • Pragmatic Guide to Subversion [in beta]
  • Pragmatic Guide to Git [in beta]
  • Test-Driven Development Screencast 
  • Thanks for your continued support,

    Andy & Dave

    Books * eBooks * Screencasts * PragPub Magazine