News for hackers. Stuff that matters.
Re:Fear makes you a worse programmer by Aeolun on Monday April 08, 2024 @08:42PM (#39975211)
> Has anyone ever actually found this to be true?

We have a 300kloc monster, and I find that going up from 0 to 60% test coverage has given me appreciably more confidence that the system still works after any change.

Sure, the test code is almost twice that size, and breaks almost as often as the code, but my confidence in the system itself is definitely higher.

To prevent people from writing tests that need too many mocks we now have explicit dependency injection. So much easier to reason about stuff, and prevent’s people from not testing the important bits.

There are no comments on this comment yet.