Unit testing is so clearly another instance of checking a box, like code reviews and threat modeling. My introduction to unit testing came in a project I did for the Windows 7 taskbar; it was fully tested (really tested, by a QA department, not this unit test horseshit) and ready to release but they wanted me to rip it apart and make “testable” just so they could check the box saying “this project has unit tests.”
It was about three screens of code, had no layers to split apart, and what they wanted would have destabilized it.
Before the conversation was over they were talking about writing other code, outside the project and not to be released, just so I could write their idiot unit tests for that and they could check that box. Morons.
What really freaks me is the fanaticism around TDD; it’s as bad as gun nuts. Several times on here I’ve read that all software development does TDD because if it doesn’t do TDD then it’s not “real” software development. This is thousand-mile-stare shit.
And a lot of the fanatics say that developers should have sole responsibility for testing their own code; anyone who doesn’t see what’s wrong with this should be in another line of work because he hasn’t learned a goddamn thing.