All the time I hear that RoR has great testing enviroment.
Well, why I need tests? I test my webapp all the time - code a page and
than test it. So why I need that extra test - does it make some special
I am confused
See various other comments on the merits of rigorous testing. I'll
throw in a bit of a footnote, which is that the question has arisen in
my mind about testing things that have already been tested.... What I
mean is that, for example, ActiveRecord has a pretty serious test
suite. So if I do:
validates_size_of :comment, :maximum => "100"
I sometimes wonder whether I really need a test like:
@thing.comment = "hello" * 21
or whatever. The method I'm using, validates_size_of, already has
unit tests. On the other hand, one could view it as testing to make
sure the validation didn't accidentally get deleted from the model
file. But then, how does one test to make sure that one didn't forget
to put "test_" at the beginning of every test? And so on.
In sum, we live with a horizon beyond which there is no testing. The
question is: where is that horizon? Perversely, perhaps, I find this
as interesting a question as any in the test realm.