Unit tests helped me find bugs about 3 times in my whole career.
--what a waste of time ... and energy, especially when you think about "continuous integration" and the bullshit unit tests get run again and again every day, every hour, every minute... What a waste of electricity!
Easy mock, mockito, power mock, shitmock. If a test has external dependency, it's simply not a unit test.
本文作者分享了自己在职业生涯中使用单元测试的经历,并认为其效用有限,特别是在考虑到连续集成所带来的资源消耗方面。作者还提到了一些模拟框架,并指出当测试依赖外部因素时,其实已经不符合单元测试的定义。
3719

被折叠的 条评论
为什么被折叠?



