3 ms·
> TDD encourages an architecture with lots of indirection so that it can achieve the necessary polymorphism for injecting dependencies in test. This is a langu
by dnautics 5y ago
> TDD encourages an architecture with lots of indirection so that it can achieve the necessary polymorphism for injecting dependencies in test.
This is a language/library thing. Some language/libraries let you do TDD with very little indirection, a table of mocked dependencies as compile-time configuration, and all of the mocking events happen in code in your tests.