Re:Lean Testing or Why Unit Tests Are Worse Than You Think
by jfjfjfjfyy on Monday July 16, 2018 @05:22AM
(#17539835)
The dogma around unit testing, TDD and the book selling test hype cycles have caused immeasurable damage to software development as technical and scientific disciplines.
[ Parent
| on HN ]
Re:Lean Testing or Why Unit Tests Are Worse Than You Think
by bacro on Monday July 16, 2018 @06:54AM
(#17540243)
I agree with you, but could you care to elaborate on that?
Re:Lean Testing or Why Unit Tests Are Worse Than You Think
by jfjfjfjfyy on Monday July 16, 2018 @07:14AM
(#17540341)
Where to begin.. perhaps the projects with code metrics tied into the check in system - want to commit code changes? You're now on the hook to provide at least 85% unit test coverage or the source control tool will not accept it. So what did most people do? They wrote useless tests, assert true equals true, no-ops or pass statements, basically anything to just get past the arbitrary metric.
Or how about another project that had lots of real tests, that were old, unmaintained, did humongous amounts of work in each single unit test and took a weekend to run, and of course, fail.
Or perhaps the team that obsessed about the testing for each user story, spent all the time doing that, then running out of time to deliver the actual stories.
And those were the less egregious examples!