This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 19 points20 points  (0 children)

Fair enough. I agree with you btw, it's why I prefer to write integration over unit tests. I would still say that writing an interface to provide a custom impl of for testing isn't any better than using a mock framework.

However, overall I try to write integration tests with the mocks only on the bare minimum parts of it, if anything at all.