- STAFF PICKS
- GIFTS + GIFT CARDS
- SELL BOOKS
- FIND A STORE
Other titles in the Pragmatic Programmers series:
Rails Test Prescriptionsby Noel Rappin
Synopses & Reviews
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.
Book News Annotation:
Intended to provide a collection of best practices for testing software built with the Ruby on Rails open source web application development framework, this guide provides both a discussion of the theoretical underpinnings of rails software testing as well as practical guidance for developing effective software testing regimes in a variety of development methodologies. Divided into six sections, the work covers basic test development, testing application data, testing of user-facing layers, framework extensions, integrated, finished product testing, and analysis and test evaluation. The volume includes numerous code examples and access to additional online resources is provided. Annotation ©2011 Book News, Inc., Portland, OR (booknews.com)
This guide gives teams straightforward and proven ways to introduce unit testing into their process, resulting in higher quality and fewer bugs. It shows developers how to test and what to test.
Rails is large, powerful, and new. How do you use it effectively? How do you harness the power? And, most important, how do you get high quality, real-world applications written?
From the latest Ajax effects to time-saving automation tips for your development process, Rails Recipes will show you how the experts have already solved the problems you have.
Owning Rails Recipes is like having the best Rails programmers sitting next to you while you code.
The NIST estimates that poor testing costs the US economy $60 billion annually. This book gives teams straightforward and proven ways to introduce unit testing into their process, resulting in higher quality and fewer bugs.
All over the world, software teams are using unit testing both to verify their code and as a way of helping them design better code. This book is unique in the way it covers two aspects: showing developers both how to test and helping them determine what to test.
New in the second edition:
About the Author
Dave Thomas and original co-author Andy Hunt are founders of the Pragmatic Programmers and the Pragmatic Bookshelf.
McGraw-Hill authors represent the leading experts in their fields and are dedicated to improving the lives, careers, and interests of readers worldwide
What Our Readers Are Saying