4 ms·
Just because something is important doesn't mean it is enjoyable.
by arvinsim 6y ago
Just because something is important doesn't mean it is enjoyable.
- twh270 6y agoI know this sounds like evangelism, but I absolutely hated writing unit tests until I learned TDD. Now, I don't always write tests first, but I usually do. I'll also say that I have seen a lot of time wasted writing useless unit tests. That can contribute significantly to the "I hate unit tests" feeling.
- noisem4ker 6y agoMaybe not enjoyable, but also not anxiety-inducing like certain foundational design tasks can be. For procrastinators, writing a small unit test can be a near-mindless, easy activity to get going.
- mandeepj 6y agoI consider Unit tests to be essential. People who don't like them, maybe they never tried to drive a value from them. I also use-to consider them not important, but they have saved my as* so many times. How would you drive a big refactor, without introducing new bugs - without unit tests? With a solid test coverage, via a button click, you can conclude - how functional is your code base. Of course, not on the basis of weak tests.