3 ms·
Cheap integration tests is usually an oxymoron (when cheap refers to the tightness of the developer feedback loop). Gary was coming from the land of Ruby-on-ra
by adamkl 6y ago
Cheap integration tests is usually an oxymoron (when cheap refers to the tightness of the developer feedback loop).
Gary was coming from the land of Ruby-on-rails where a full set of integration tests could take hours. In that environment, structuring your code to enable easy testing of complex logic makes a lot of sense.
Likewise in a large enterprise environment, where integration testing across a (usually messy) set of interconnected dependencies is a pipe dream.
It's true that over-architecting is something to be wary of, but as usual, there's no one-size-fits-all answer.
- pydry 6y agoIt's cheaper to have a TDD test that takes 15 seconds to run and launches into an embedded kernel than it is to re-architect your whole system. It doesn't matter if the whole test suite takes hours. CI servers don't need to be supervised.