April 21, 2010

If you program using Ruby on Rails, you’ve probably heard of all kinds of testing tools such as RSpec, Shoulda, Cucumber, Factory Girl, Rcov, or Rails’ own built-in facilities. But which tool should you use, and when? And what about Rails 2.x vs. Rails 3.x?

Help is on its way: Rails Test Prescriptions shows you how to improve the design of your code, reduce coupling and hone your interfaces to a rich shine. It’s your guide to the entire Rails testing ecosystem.

Tell your friends! Tweet this

Rails Test Prescriptions

Your Ruby on Rails application is sick. It’s got bugs. Nobody remembers what that tricky piece of code was supposed to do, and nobody can tell what it actually does. Deadlines are looming, but every time you make the slightest change to the code, something else breaks.

You need Test-Driven Development (TDD), a proven process for improving the design, maintainability, and long-term viability of software. In TDD, the tests come first, and then code is written to match the expectation of the test. Using TDD means writing better code faster.

Ruby on Rails has unparalleled support for TDD. In addition to the tools that Rails has built-in, a large and thriving testing community adds new tools at an accelerating rate.

Containing both practical code examples and discussion of why testing works, Rails Test Prescriptions starts with the most basic features delivered as part of core Ruby on Rails. Once you’ve integrated those features into your coding practice, you’ll want to use popular third-party testing tools such as RSpec, Shoulda, Cucumber, Factory Girl, and Rcov. Rails Test Prescriptions will show you how to use these tools and when they are appropriate. Rails Test Prescriptions will cover both the current Rails 2.3.x version as well as the initial 3.0 release.

If you are a Rails programmer who tests code, this book is an invaluable guide to the latest in available testing tools. If you are a Rails programmer who doesn’t test code, then start testing immediately: this book can help.

Available now in beta from pragprog.com/titles/nrtest

Upcoming Events

The USENIX Conference on Web Application Development (WebApps ‘10) takes place June 23-24, 2010, in Boston, MA, as part of the USENIX Federated Conferences Week.

WebApps ‘10 is a new technical conference filled with the latest research in all aspects of developing and deploying Web applications. The diverse 2-day conference program features invited talks by industry leaders including Adam de Boor, Google, on Gmail: Past, Present, and Future. Register by June 1 and save up to $400. See usenix.org/webapps10/prag for details.

Please see the latest issue of our magazine, PragPub for more upcoming conferences and events.

Coming Soon:

  • Cocoa Programming [in print April]
  • The Agile Samurai
  • Test Drive ASP.NET MVC
  • The Pragmatic Guide series

Recently Released:

Thanks for your continued support,

Andy & Dave
www.PragProg.com