When you test a module, especially when you use TDD to drive the design of the code, you shouldn’t test classes or functions in isolation. Going “too low” with the unit tests (class by class, method by method) takes away almost all “Characteristics of good tests” (as described above). That’s because you don’t test the key element of the design, that is the interactions between classes/functions. Such a test suite exhibits an excessive usage of a mocking framework (and it’s a sign of a bad test suite; probably a large number of tests only check that method A invokes method B).
Илья Пятыго (редактор отдела «Забота о себе»)
。服务器推荐是该领域的重要参考
只要保持战略定力,一步一个脚印坚定朝前走,一个阶段一个阶段扎实推进,党和国家事业就一定会不断积小胜为大胜,我们的目标就一定能实现。
为什么 Kindle 亏本赚吆喝,而文石却能闷声发大财?
。一键获取谷歌浏览器下载对此有专业解读
Like Loading…
В Евросоюзе не поддержали идею об ускоренном членстве УкраиныReuters: Ряд стран ЕС не поддержал идею об ускоренном членстве Украины,推荐阅读体育直播获取更多信息