Testing software: fake vs stub
问题 There are quite a few written about stub vs mocks, but I can't see the real difference between fake and stub. Can anyone put some light on it? 回答1: I assume you are referring to the terminology as introduced by Meszaros. Martin Fowler does also mentions them regularly. I think he explains the difference pretty well in that article. Nevertheless, I'll try again in my own words :) A Fake is closer to a real-world implementation than a stub. Stubs contain basically hard-coded responses to an