If you look at these 4 articles in the context of containers it becomes clear that you don't have to accept the limitations of mocking anymore.
Mocking was born for the sole reason that bringing up dependencies was hard... with containers that bar is lowered significantly.
Makes you think... Why accept the dangers / issues associated with mocking such as false positives and decreased maintainability???
My suggestion: use containers to bring up dependencies and reuse them for your tests.
https://www.slideshare.net/davidvoelkel/mockist-vs-classicists-tdd-57218553
https://martinfowler.com/articles/mocksArentStubs.html#CouplingTestsToImplementations
https://www.thoughtworks.com/insights/blog/mockists-are-dead-long-live-classicists
https://plus.google.com/events/ci2g23mk0lh9too9bgbp3rbut0k
No comments:
Post a Comment