Do we need to unit test Rails apps?
Posted February 28, 2009on:
Currently I am making a website using Ruby on Rails for my beloved. Moving in from Java I found developing Rails apps is very convenient as I can see changes directly (with few exceptions though) without restarting the server. With that in mind, I was wondering whether we still need to unit test Rails apps. Luke Francl explained in his presentation and interview why testing is overrated. I must agree that it is quite true that unit testing seems to be overrated for Rails apps because unit testing grew up from static language like Java and because you want to make sure your code works before you test it on a real server. So back to the question, what’s the point of doing TDD and BDD in Rails apps? If I’m developing with Rails, what is the advantage of unit testing over usability testing by human? Is there still anything useful from doing TDD in Rails?