Jump to ratings and reviews
Rate this book

Rails Test Prescriptions

Rate this book
Rails Test Prescriptions is a comprehensive guide to testing Rails applications, covering Test-Driven Development from both a theoretical perspective (why to test) and from a practical perspective (how to test effectively). It covers the core Rails testing tools and procedures for Rails 2 and Rails 3, and introduces popular add-ons, including Cucumber, Shoulda, Machinist, Mocha, and Rcov.

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. 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. 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.

350 pages

Published October 25, 2010

5 people are currently reading
51 people want to read

About the author

Noel Rappin

18 books4 followers

Ratings & Reviews

What do you think?
Rate this book

Friends & Following

Create a free account to discover what your friends think of this book!

Community Reviews

5 stars
10 (18%)
4 stars
22 (41%)
3 stars
16 (30%)
2 stars
5 (9%)
1 star
0 (0%)
Displaying 1 - 2 of 2 reviews
22 reviews21 followers
August 11, 2011
I was completely overwhelmed by the shear volume of rails testing tools, and this book provided a good overview of many different tools and provided a kind of map of the landscape. Additionally, the book was not as dogmatic as one would expect a book on rails testing to be. That said, the quality of writing was not great, the book seemed to contain many errors. The most grievous sin is that at the end of it I don't know that I came away with any insights that would make me a better tester, the book was too shallow for me to learn anything deep.
Profile Image for Katherine.
149 reviews
January 28, 2018
It was good enough the first the time I read it. It is best to explore test frameworks especially the default ones like minitest. Overall, I think this book is still enough for those who to know more tools.
Displaying 1 - 2 of 2 reviews

Can't find what you're looking for?

Get help and learn more about the design.