3 ms·
> 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 mor
by Aeolun 3y ago
> 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.