1

I am on a tight timeline with minimum resources for a project.

I would like to practice test driven development for this project, but realistically, i would not have time to learn any of the more sophisticated frameworks like Cucumber, Rspec, etc. And it would probably be counter-productive at this point anyway

What do you recommend is the minimum I do?

meow
  • 27,476
  • 33
  • 116
  • 177

3 Answers3

4

If you are very short on time, your best bet would be to read through the rails guide on testing. It equips you to get started quickly with Test:Unit.

Then you could write unit tests for the (model) methods that you care most about - things most critical to your app.

Optional suggestion - Rails testing is a landscape full of controversies and debates. If you want to save time, get started with (any) one thing (Test:Unit/shoulda/rspec...fixture/factory ..etc) and leave the discussions for leisure.

abhishek
  • 998
  • 6
  • 9
1

You might want to give Shoulda a try.

Mike Buckbee
  • 6,793
  • 2
  • 33
  • 36
1

Test Unit is baked into rails and is pretty easy to use if you have any background with unit testing.

Toby Hede
  • 36,755
  • 28
  • 133
  • 162