Unit testing isn't a bad idea, but it's not an incredibly prolific one either. Maybe I haven't gotten the proper intro to testing, but what I've seen (mainly in rails blog articles) is a joke. If I'm going to test a function I want to test the entire domain of inputs -- assertEquals(square(2) , 4) is totally useless.
I'd be happy to have someone show me an example of a useful rails-related test.
losers like this are why I quit using rails. well, that and the whole ungodly slowness thing.
rails doesn't provide any facility for testing the stuff that is actually hard to test - the frontend javascript/flash/ui layer. it makes it easy to test stuff that shouldn't need testing.
Software that doesn't need testing - that doesn't exist I am afraid.
The UI is a different ball game (and as browsers evolve it will continuously change), and there are tools out there to solve it in some way or another. With the Rails tests, at least you have confidence that your backend is correct which is probably 80% of the battle.
Also, the value of automated tests in general is to give you confidence that the small change you just made didn't break something else!
I wouldn't test a pure CRUDscreen put-data-on-the-screen app. How would it break? The app is basically a specification of the data you want moved from database to the web page.
And with the apps I've worked on, about 80% of the battle was the UI. The backend was usually pretty simple data storage. That could be because my career has been largely UI-centric, but there are certainly apps out there where the UI code is more complex than the computation itself.
Yeah, this blog post was definitely inflammatory . . .
well, that and the whole ungodly slowness thing.
That's pure FUD -- it's nowhere near as slow as you imply.
rails doesn't provide any facility for testing the stuff that is actually hard to test - the frontend javascript/flash/ui layer.
That's not true. Every popular testing library for Rails (stock or third-party) has view testing. I noticed you threw in Flash. Do you really expect your web application framework to test your Flash files? What would that look like?
it makes it easy to test stuff that shouldn't need testing.
Your domain modeling, controllers, and all-around application logic shouldn't need testing?
He probably could have written it better so it wouldn't have been inflamatory, but this has been done for years now... this probably applies for all apps beyond just Rails...