4 ms·
I have never met anyone who doesn't care about code quality yet writes unit tests...
by mdpopescu 10y ago
I have never met anyone who doesn't care about code quality yet writes unit tests...
- TickleSteve 10y agothen you have never worked in anything but a small focussed team. The majority of development is performed by people in corporate environments, 9->5. They simply know that they "have to" write unit tests. No reasoning is performed, simply churn out the code to satisfy the boss and walk out at 5pm.
- mdpopescu 10y agoSorry, you are correct; what I wrote was simply stupid. I have, in fact, encountered one method with a cyclomatic complexity of 20+, which had a single test (it verified that the result was not None). I just tried to put that code behind me and yes, those "tests" were there because they were mandatory. Blech.