首页> 外文会议>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%的代码覆盖率,”smack。代码覆盖和质量之间真的没有关系,因为代码覆盖率是一个可怕的作业告诉你测试是否彻底。良好的测试覆盖只能从事尽可能多的有趣事情,这擅长在代码中曝光缺陷。代码覆盖报告,当用作质量的度量时,隐藏有用的测试。本文展示了代码覆盖报告的实际示例,显示了完全覆盖的100%覆盖率,完全无用。将提出替代测试,证明在代码覆盖范围内暗示的相反方向上有多么引导一个人的注意力实际上会产生更好的测试生成和对测试套件地址的更有信心。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号