News for hackers. Stuff that matters.
Re:Don’t mock what you don’t own by quickthrower2 on Wednesday June 22, 2022 @07:36PM (#31843300)
I took it as: if you only have E2E tests then retrofitting unit tests is hard.

My experience agrees with this. Adding unit tests to untestable code (think: class has 10 dependencies that it news up being the first branching of a depdendecy graph to be untangled) requires refactors that just don’t get done with the busyness of other priorities.

Re:Don’t mock what you don’t own by BeetleB on Wednesday June 22, 2022 @08:05PM (#31843485)
> I took it as: if you only have E2E tests then retrofitting unit tests is hard.

That's been my experience. My point is that the reason the project has E2E tests and not unit tests is because it was easier to add E2E tests.