Re:A survey of testing techniques we've found useful
by taeric on Saturday April 11, 2020 @12:16PM
(#22842423)
The problem I have been exposed to is unit tests that have locked in what should be just an implementation detail. Can be fine, if it is an important detail. That said, your tests should not have to import all of the same pieces that your coffee does. I prefer, actually, to use alternatives in the tests, where possible.
For example, if you're code zips something, your test could use many zip engines to verify.
The advice to write mostly integration tests is a terrible one. Particularly when they test integrating of everything. When such tests catch bugs, they don't tell where the problem happened. They also take long time to execute.