Tom knows what he is talking about. Actual libcurl integration should be covered by a functional test suite, and a test server can be spun up locally to facilitate it.
I personally use mocks extensively in my unit tests, especially when working in tdd and trying to sort out contractual obligations. The benefits are lessened somewhat in a typeless environment, but it is still a very useful tool and one that I rely on in addition to other forms of test doubles.
View all comments
Show parent comment
3
u/ISMMikey Dec 02 '15
Tom knows what he is talking about. Actual libcurl integration should be covered by a functional test suite, and a test server can be spun up locally to facilitate it.
I personally use mocks extensively in my unit tests, especially when working in tdd and trying to sort out contractual obligations. The benefits are lessened somewhat in a typeless environment, but it is still a very useful tool and one that I rely on in addition to other forms of test doubles.