The RSpec Book: Behaviour Driven Development with Rspec, Cucumber, and Friends

The RSpec Book: Behaviour Driven Development with Rspec, Cucumber, and Friends

3.94 of 5 stars 3.94  ·  rating details  ·  249 ratings  ·  35 reviews
Behaviour-Driven Development (BDD) gives you the best of Test Driven Development, Domain Driven Design, and Acceptance Test Driven Planning techniques, so you can create better software with self-documenting, executable tests that bring users and developers together with a common language.

Get the most out of BDD in Ruby with The RSpec Book, written by the lead developer o...more
Paperback, 426 pages
Published December 22nd 2010 by Pragmatic Bookshelf (first published May 15th 2009)
more details... edit details

Friend Reviews

To see what your friends thought of this book, please sign up.

Community Reviews

(showing 1-30 of 597)
filter  |  sort: default (?)  |  rating details
Francisco Garcia
If you want to test your code with Rspec this is THE book you must read. It is a very nice introduction and reference which also covers Cucumber and Rails. However if you are interested in these two cases, you will have to read other books.

You should know something about TDD if you really want to get most of the value out of this book. The mocking part is a nice reference, but will not teach you how/when to use mocks. Even if you are new to TDD/BDD you will experience the benefits.

Just be aware...more
Ronald
I read some parts and skimmed other parts. The discussion around BDD is really interesting and looks to be really useful as part of a continuous delivery pipeline. I skimmed over the Ruby-specific portions -- probably the last half of the book -- only because I'm currently working on a project with Flash front end and a Java back end. I suspect we'll end up using cuke4duke in concert with Cucumber to get our UAT automated. The ability to use the tests as documentation for system functionality lo...more
Robert Postill
Overall I liked this book. However if you have worked with rspec before you're going to end up skimming a lot of this book as the basics are thoroughly covered. Also if you don't have a strong background in TDD then I think some of the book's message is lost on you. All-in-all then there's a niche here that limits the appeal of this book. On top of that the material will age quickly (the cucumber stuff already has) and I suspect in a year or two's time the book's content will have some significa...more
Marshall
A fabulous book about RSpec, a testing framework for the Ruby programming language. Actually, this book is about much more than just RSpec--it's also about a bunch of other tools: Cucumber, Webrat, and Selenium. I rolled my eyes when I first saw this, but as I read it I saw that each of these are pieces to a much greater puzzle: Behavior-Driven Development (BDD) in Ruby.

I rolled my eyes at that too, because it just seemed like a fancy name for Test-Driven Development, and it kind of is. The only...more
Bjoern Rochel
The book is more or less a duplex book. The first part of the book gives a decent introduction to Behavior Driven Development and how Cucumber and RSpec ideally are used in context of BDD as a methodology. The value of this book lies in those chapters.

It's important to understand the context in which tools were born and the ideas behind them. If you leave those bits and pieces out, you'll easily end up with a narrowed view of them, that doesn't seem to add much value. Like DHHs view of Cucumber...more
Kyle Wild
The title of this book is unfortunate. This isn't really a book about RSpec (or Cucumber or Ruby) any more than 1984 is about Oceania (or Winston Smith). Rather, "The RSpec Book" is a treatise on a software development philosophy, and its vehicle happens to be RSpec.

I'm a lifelong student of software development, and this book fundamentally changed the way I think about - and practice - my craft.
Jean Tessier
Sep 27, 2011 Jean Tessier marked it as to-read
Shelves: software
Got a signed copy from my good friend Dave Astels. I got exposed to RSpec back on 2008-11-07 and I have been waiting for this book ever since. I wish there was an RSpec for Java or Groovy. I heard that JBehave is supposed to be similar, but the syntax is not the same. RSpec reads just like English, with spaces and all!
Volkan  Unsal
I'm waiting for the day this book will finally come out of Beta. As of the 15th of November, the release date is pushed back again. But the Beta versions cover a lot of ground. One thing I miss seeing here is a chapter on how to write a good feature scenario. Great book, nonetheless.
Jan
Ta książka nie jest o RSpecu, ani o Cucumberze. Ta książka nie jest o Ruby'm. Ta książka nie jest nawet o BDD. To wszystko tylko narzędzia.

No, the meme is more than any one of those things. The meme is a
synergistic witches brew of some of the most contagious and effective
ideas of the past two decades. The meme is. . .
Dare I say it?
The meme is. . .
. . . Craftsmanship.


Na przykładzie Cucmbera, Rspeca i Ruby'ego oczywiście autorzy przedstawiają zawiłości testowania wg filozofii BDD. Jedne rozdziały...more
Richard
Enjoyed reading the sections on Cucumber & RSpec. Suitable for developers of any language as the foreword mentions. Some sections haven't kept pace with the fast moving work of Ruby, e.g. examples in Webrat instead of Capybara.
Ivan
This book is still in beta, so it has some missing chapters. It's a good tutorial and introduction to Cucmber and Behavior Driven Development (testing) of Ruby on Rails web applications.
Jon Austin
Think I need to re-read it now that I've used RSpec for a couple years, but found it confusing at the time (and remember nearly half of it being about BDD/Cucumber).
Swanand Pagnis
This book would really change the way you code. You'll never write a line of code without actually thinking about a spec first.
Constantin Gavrilescu
This book is helping me get started with unit testing done right with rspec and integration testing with cucumber.
Mark
Jun 22, 2010 Mark rated it 5 of 5 stars
Shelves: ruby, bdd
Great book. Really got me stoked about BDD. I'm digging Cucumber, too. Thanks for the tip, @Noah Sussman!
Jason
Good intro to BDD. Includes a lot of useful cucumber stuff.
Steve
Preferring the expressiveness of BDD and RSpec to xUnit, I use it on projects whenever I got a chance. I grabbed this book to add Cucumber to my toolset so that I could exercise the full stack of a Rails application. What I got in the end was an enhanced understanding of how Cucumber, RSpec, and Rails play well together but more importantly was a focus on craftsmanship and how to write code patiently and precisely: coding just enough to solve the problem and refactoring fearlessly.
Serge Boucher
Clear and concise
Naoto Koshikawa
Jan 09, 2012 Naoto Koshikawa marked it as interest
これ読みたい
Camael
Jun 24, 2009 Camael is currently reading it
test
Mauro Botelho
This book helped me a lot with learning Rspec and Cucumber. My tests definitely look much better now.
Joe Wright
I've been using Cucumber and RSpec for a while now without having read this book. Needless to say I understand the culture around RSpec a lot better now, and how some of the magic works (like have_key?).

The book is an easy read, with a good chapter in the middle about why software projects fail.

If you are using RSpec on a project then I'd recommend this highly.
Harry Yeh
Good Introduction and uses on RSPEC instead of using the default Test::Unit - We use RSPEC a lot in our projects
Daniel Temme
I liked the book and everyone is probably better off for reading it but I found it a little chaotic in focus. One minute we're deep in Ruby implementation details, the next we're having philosophical discussions about the history of agile software development.

I do like all the little books inside the book, so maybe I shouldn't be complaining.
Michael
Oct 29, 2010 Michael marked it as to-read
I've had a long fascination with traceability between requirements and code, and RSpec (and it's .NET cousin SpecFlow) provide one way of doing that.

I've tried RSpec and SpecFlow on small things, and a large upcoming project is a good candidate for using it in a big way.... so going to read up a bit before trying that.
Aaron
Apr 26, 2011 Aaron rated it 4 of 5 stars
Recommended to Aaron by: Ed
The title is a bit misleading. The text is so much more than just a tutorial of RSpec. Chelimsky discusses the motivation for BDD and guides the reader through supporting practices.

++good
Beau Dacious
I first attempted to learn about BDD using Internet resource, but found them all to assume I was familiar with things that I wasn't or to only address a small subset of information that I was looking for. This book did a good job of filling in the gaps and getting me started down the right path.
Mrugesh Karnik
As others have said before, the name is misleading. It isn't just about RSpec. The book is a fantastic introduction to BDD itself. Most recommended to anyone working with Ruby.
Harri Kauhanen
Important topic... Especially the generic BDD stuff! Some parts really good. Not partically well organized and could have been much shorter.
Michael
I'm going to approach learning Ruby from a slightly different angle.
« previous 1 3 4 5 6 7 8 9 19 20 next »
There are no discussion topics on this book yet. Be the first to start one »
The RSpec Book: Behaviour Driven Development with Rspec, Cucumber, and Friends (Kindle Edition)
The Rspec Book: Behaviour Driven Development with Rspec, Cucumber, and Friends (ebook)

Goodreads is hiring!

If you like books and love to build cool products, we may be looking for you.
Learn more »

Share This Book

Your website