3 ms·
Integration tests really are the best bang for the buck. So many times people think they tested their code by mocking something like the database layer and are
by trixie_ 8y ago
Integration tests really are the best bang for the buck. So many times people think they tested their code by mocking something like the database layer and are surprised when the application in production breaks. Everything can be tested in isolation and work perfectly, but often it's how the components work together that determines if the system works at all.
Integration test what you can. Unit test core pieces of logic. Avoid mocks.
- sime2009 8y agoFully agree. The majority of us are writing code with has to talk to a lot of other systems which we didn't write and don't control. These interface areas between systems are huge gathering places for bugs. Also, mocks are self-deception at best and lies at worst.