Re:Don’t mock what you don’t own
by kinetronic on Wednesday June 22, 2022 @04:24PM
(#31841428)
James 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.
Cue Mock Hell https://www.youtube.com/watch?v=CdKaZ7boiZ4 :)
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.