From: Rick DeNatale Date: 2010-06-07T20:37:48+09:00 Subject: Re: Unit Testing good study material On Mon, Jun 7, 2010 at 12:40 AM, Lakshmanan Muthukrishnan wrote: > I am a beginner in ruby and I have read the "Unit testing" chapter in > Programming Ruby book. I want to study Unit testing using ruby in much > more detail. > > Can somebody point me towards a good resource for that ? you might want to google for a few terms related to that like TDD (or test driven design) or BDD (behavior driven design) I'd recommend "The RSpec book" from the Pragmatic Programmers which is currently in the last stages of their beta program, which means that you can buy the book as a PDF and optionally get the printed book when available. http://pragprog.com/titles/achbd/the-rspec-book As the name implies the book covers rspec rather than test::unit. RSpec has become a very popular alternative to test::unit for many Rubyists. It also covers Cucumber which is a higher level framework for writing user-level specifications/acceptance tests. The pair work very well in combination. There's also another pragmatic programmers title in beta "Rails Test Prescriptions" by Noel Rappin. http://pragprog.com/titles/nrtest/rails-test-prescriptions This was a self-published book, which focused more on Test::Unit, but included material on RSpec/Cucumber. It's been picked up as a title by the prags, I believe that it's more focused on Rails than the RSpec book, which covers the use of RSpec/Cucumber with Rails apps in the context of doing BDD in Ruby, whereas the Rappin book looks like it covers the use of RSpec and Cucumber as an extension of the Test::Unit based testing framework in Rails. HTH -- Rick DeNatale Blog: http://talklikeaduck.denhaven2.com/ Github: http://github.com/rubyredrick Twitter: @RickDeNatale WWR: http://www.workingwithrails.com/person/9021-rick-denatale LinkedIn: http://www.linkedin.com/in/rickdenatale