| I think what people really mean when they say "This can't be tested" is: "The cost of writing these tests outweighs the benefit", which often is a valid argument, especially if you have to do major refactors that make the system overall more difficult to understand. I do not agree with test zealots that argue that a more testable system is always also easier to understand, my experience has been the opposite. Of course there are cases where this is still worth the trade-off, but it requires careful consideration. |
I did a lot of work on hardware drivers and control software, and true testing would often require designing a mock that could cost a million, easy.
I've had issues, with "easy mocks"[0].
A good testing mock needs to be of at least the same Quality level as a shipping device.
[0] https://littlegreenviper.com/concrete-galoshes/#story_time