首页> 外文会议>Annual Pacific northwest software quality conference >CODE COVERAGE ISN'T QUALITY, IT ISN'T EVEN COVERAGE
【24h】

CODE COVERAGE ISN'T QUALITY, IT ISN'T EVEN COVERAGE

机译:代码覆盖率不是质量,甚至不是覆盖率

获取原文

摘要

If anybody ever says "I know our code has high quality because we achieved 100% code coverage," smack them. There really is no relationship between code coverage and quality because code coverage does a dreadful job telling you whether or not tests have been thorough. Good test coverage only comes from doing as many interesting things as possible that are good at exposing flaws in code. Code coverage reports, when used as a metric of quality, hide the useful tests. This paper shows real examples of code coverage reports that showed 100% coverage that were completely, and entirely useless. Alternate tests will be presented that demonstrate how sometimes directing one's attention in the opposite direction implied by code coverage actually yields better test generation and more confidence in what the test suite addresses.
机译:如果有人说“我知道我们的代码质量高,因为我们实现了100%的代码覆盖率”,那就打他们。代码覆盖率和质量之间确实没有关系,因为代码覆盖率会告诉您测试是否进行了彻底的检查,因此工作十分艰巨。良好的测试覆盖范围仅来自于尽可能多地执行有趣的事情,这些事情都善于暴露代码中的缺陷。代码覆盖率报告用作质量度量标准时,将隐藏有用的测试。本文展示了代码覆盖率报告的真实示例,这些报告显示了100%的覆盖率是完全无用的。将提供替代测试,这些测试表明有时有时将人的注意力引向代码覆盖率所暗示的相反方向实际上可以产生更好的测试生成,并对测试套件所解决的问题更有信心。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号