2

I write ruby but want to start with TDD/BDD for a new project. IS there any tutorial or good books out there for learning TDD/BDD.

Bhushan Lodha
  • 6,824
  • 7
  • 62
  • 100
  • Related and might be useful http://stackoverflow.com/questions/1386562/how-to-get-started-on-tdd-with-ruby-on-rails – 18bytes Jul 27 '12 at 11:28
  • TDD by example (by Kent beck) is one of the best books i know for TDD. But examples are in Java though. – 18bytes Jul 27 '12 at 11:29

4 Answers4

5

With the books mentioned above peepcode screencast on cucumber and rspec is also good.

Links cucumber and rspec

4

I really liked this one: The RSpec Book: Behaviour-Driven Development with RSpec, Cucumber, and Friends.

Sergio Tulentsev
  • 226,338
  • 43
  • 373
  • 367
2

The Cucumber Book is a great book, which although small doesn't miss out on anything you'll need to know about BDD using Cucumber and Ruby. I'd also highly recommend Growing Object Oriented Software.

SaxonMatt
  • 949
  • 6
  • 9
1

All the previous answers were centered in the technology behind TDD/BDD (i.e. rspec).

If you are looking for a way to see/understand the process as a whole I really enjoyed Rails 3 in Action, because it TDDs a whole application.

It is easy to follow and quite mind-opening! :)

fuzzyalej
  • 5,903
  • 2
  • 31
  • 49