【24h】

Coverage Specification for Test Case Intent Preservation in Regression Suites

机译:回归套件中测试用例意图保存的覆盖范围规范

获取原文

摘要

Regression testing ensures that previous faults do not recur. When a fault is reported and fixed, the testing team augments the test suite with a new test case that exercises the fault in the original program. Typically the new test case covers patterns of program elements associated with the fault. However, this test might become obsolete (i.e., does not cover the targeted patterns anymore) when other code modifications are made. Nevertheless, current coverage metrics might still report acceptable values thus misleading the testing team. In this paper, we present a coverage specification language and a methodology to preserve the intent of test cases in a regression test suite. We implemented our methodology for C programs and for def-use program elements. With our method, a) a coverage specification language enables testers to specify def-use pairs and associate them with tests, b) the def-use pairs' specifications recognize the pairs across subsequent versions of the program, and c) the tool computes run time assembly level addresses for def-use pairs and guarantees intent preservation. Preliminary results show that our method works for program changes involving insertions and deletions of several lines of code.
机译:回归测试可确保以前的错误不会再次发生。报告并修复故障后,测试团队将使用一个在原始程序中执行该故障的新测试用例来扩充测试套件。通常,新的测试用例涵盖与故障相关的程序元素的模式。但是,当进行其他代码修改时,此测试可能会过时(即不再涵盖目标模式)。但是,当前的覆盖率指标仍可能报告可接受的值,从而误导测试团队。在本文中,我们介绍了一种覆盖率规范语言和一种方法,以保留回归测试套件中测试用例的意图。我们针对C程序和def-use程序元素实施了方法论。使用我们的方法,a)覆盖范围规范语言使测试人员可以指定def-use对并将其与测试相关联,b)def-use对的规范可以识别程序后续版本中的对,以及c)工具计算运行时间组装级别的地址用于def-use对,并确保意图保留。初步结果表明,我们的方法适用于程序更改,其中涉及插入和删除几行代码。

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号