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).
Read full article
。业内人士推荐Line官方版本下载作为进阶阅读
8点1氪丨阿联酋宣布承担所有滞留旅客费用;宗馥莉砍掉娃哈哈机器人业务;五粮液回应董事长被查
20 monthly gift articles to share
Jason Heiselman (Hungryroot)Director of Culinary and former Sr. Executive Chef