O’Reilly news

Rails Test Prescriptions: Keeping Your Application Healthy--New from Pragmatic Bookshelf

March 16, 2011

Rails Test Prescriptions

Request Review copy

Raleigh, NCRails Test Prescriptions (Pragmatic Bookshelf, $34.95 USD) is a comprehensive guide to testing Rails applications, covering the core Rails testing tools and procedures for Rails 2 and Rails 3, and introduces popular add-ons, including RSpec, Shoulda, Cucumber, Factory Girl, and Rcov.

Why would you need this book? Author Noel Rappin explains an all-too-common scenario: "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.

Noel continues, "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. Rails Test Prescriptions is your guide to the entire Rails testing ecosystem."

Containing both practical code examples and discussion of why testing works, this book 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.

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 in epub, mobi, and PDF direct from the publisher and in paperback from fine bookstores worldwide.

For a review copy or more information please email pragprogpr@oreilly.com. Please include your delivery address and contact information.

About the Author

Noel Rappin is a Senior Consultant at Obtiva. A Rails developer for five years, Noel has spoken at RailsConf and Windy City Rails, and is the author of Professional Ruby on Rails from Wrox Press. A blog relating to this book can be found at http://www.railsrx.com.

View Noel Rappin's full profile page.

Additional Resources
For more information about the book, including: code, errata, discussions, full table of contents, excerpts from the book and more, see the catalog page for Rails Test Prescriptions.

Rails Test Prescriptions Rails Test Prescriptions
Publisher: Pragmatic Bookshelf
By Noel Rappin
Print ISBN: 9781934356647  
Pages: 350
Print Price: $34.95  
order@oreilly.com
1-800-998-9938
1-707-827-7000

Request Review copy

About Pragmatic Bookshelf
Pragmatic Bookshelf is an imprint of the Pragmatic Programmers, LLC. Our titles are distributed to bookstores internationally by O'Reilly Media.

The Pragmatic Bookshelf features books written by developers for developers. The titles continue the well-known Pragmatic Programmer style, and continue to garner awards and rave reviews. As development gets more and more difficult, the Pragmatic Programmers will be there with more titles and products to help programmers stay on top of their game.

About O’Reilly

O’Reilly Media spreads the knowledge of innovators through its books, online services, magazines, and conferences. Since 1978, O’Reilly Media has been a chronicler and catalyst of cutting-edge development, homing in on the technology trends that really matter and spurring their adoption by amplifying “faint signals” from the alpha geeks who are creating the future. An active participant in the technology community, the company has a long history of advocacy, meme-making, and evangelism.

Email a link to this press release