3 ms·
I mean this looks like the author is just trying to find a justification to not write unit tests because he doesn't like it. I pick the last sentence "If you l
by flr03 6y ago
I mean this looks like the author is just trying to find a justification to not write unit tests because he doesn't like it.
I pick the last sentence "If you like writing tests and are very good at it, you may continue to do so."
This basically means, well "I don't like it, I'm not very good at it so I won't do it".
What I want to answer to that is that if you are not good at it, spend time to get better. Everyone can learn what is a unit test in 5 mins, writing good tests and good testable code takes years. Do tests get deprecated and useless, are they hard to maintain? Yes that's right, this happens. So don't aim for any coverage percentage, if you aim for 80% coverage but the last 30% are a pain to write, a pain to maintain and don't bring a lot a value then don't write them. Focus on the rest, make sure the core functionalities are well covered.