3 ms·
Few years ago I inherited a large code base. Tens of thousands of tests. Company was very proud. Basically all the test did was prove that the mocking library
by treeman79 4y ago
Few years ago I inherited a large code base. Tens of thousands of tests. Company was very proud.
Basically all the test did was prove that the mocking library worked well. Almost no actual project code or business logic was tested.
Company was not happy to hear.
- hynek 4y agoCue Mock Hell https://www.youtube.com/watch?v=CdKaZ7boiZ4 https://www.youtube.com/watch?v=CdKaZ7boiZ4 :)
- kinetronic 4y agoJames Coplien wrote in 2014 I think a paper titled "Why most unit testing is waste" which stirred up a storm among developers. I've seen many rebuttals, and they keep cropping up every year, but most seem to agree with his core premise: unit testing is valuable for testing algorithms -- stateless functions performing a computation -- and not much else.