I regret having written Mocker for Python. May be very useful, but mocking encourages a bad style of testing that is viral. I can say for sure that in code reviews I said "please let's not use mocker here" much more often than the other way around.
In the next project I'll vote against adopting a mocking framework for the test suite.
In the next project I'll vote against adopting a mocking framework for the test suite.
View 4 previous comments
I don't see how "write an HTTP server implementing every possible interface, and do it correctly" results in "small, understandable, etc…" tests. I agree with your requirements, but I fail to see how those tests which would normally be called "integration" tests, would satisfy those requirements, without testing against a live instance.Sep 27, 2011
The code is available..Sep 27, 2011
As a newcomer to Mocking, not the words I wanted to hear. But I appreciate the warning.Feb 22, 2012
It's funny that this shows up in Google search results before your actual Mocker page with the search term "gustavo mocker" :)May 2, 2013
i have started using mocker to mock requests library, do you consider this good usage ? or is this the kind of instance your referring to when you suggest that a web server should be used in place of mocker ?Jul 4, 2013
Right, these are cases where I've been using an actual web server controlled by the test suite.Jul 4, 2013
Add a comment...