单元测试检验代码是否做了开发人员希望它做的事儿,而不只是对类型进行拼写检查。
Unit testing provides verification that the code does what is expected, not just spell-checking your typing.
为了看看上述测试在检验这块代码时效果如何,我可以用Hansel检查代码覆盖情况。
To see just how effective my tests are at exercising the code, I can check code coverage with Hansel.
应用推荐