3 ms·
I think you are making a false dichotomy. I am very, very pro TDD and very, very against mocking. The problem is that certain architectures are very hard to t
by kasey_junk 13y ago
I think you are making a false dichotomy. I am very, very pro TDD and very, very against mocking.
The problem is that certain architectures are very hard to test without resorting to either mocking or integration tests. In those cases you have to weigh which is better, writing painful integration tests (or not having test coverage at all) or changing the architecture, or in certain exceedingly rare cases mocking.
- willvarfar 13y agoPossibly, but I also think I am accurately summing up DHH's article http://david.heinemeierhansson.com/2014/tdd-is-dead-long-live-testing.html http://david.heinemeierhansson.com/2014/tdd-is-dead-long-liv... and UncleBobMartin's reply where both talk about TDD mocked tests passing in seconds.
- kasey_junk 13y agoI guess mocking or not mocking was not my take from either of their articles. I thought they were both about test scope. Mocking is one way of limiting test scope but there are others. I'm ok with different readings of the articles as long as TDD doesn't start automatically being associated with mocking.
- willvarfar 13y agoYou'll have an uphill struggle if you want to stop TDD being mocked ;)
- kasey_junk 13y agoWell played.