...
首页> 外文期刊>Computing >A program slicing-based method for effective detection of coincidentally correct test cases
【24h】

A program slicing-based method for effective detection of coincidentally correct test cases

机译:一种基于程序切片的方法,可有效检测巧合的正确测试用例

获取原文
获取原文并翻译 | 示例
           

摘要

Despite the proven applicability of the spectrum-based fault localization (SBFL) methods, their effectiveness may be degraded due to the presence of coincidental correctness, which occurs when faults fail to propagate, i.e., their execution does not result in failures. This article aims at improving SBFL effectiveness by mitigating the effect of coincidentally correct test cases. In this regard, given a test suite in which each test has been classified as failing or passing and each faulty program has a single-bug, we present a program slicing-based technique to identify a set of program entities that directly affect the program output when executed with failing test cases, called failure candidate causes (FCC). We then use FCC set to identify test cases that can be marked as being coincidentally correct. These tests are identified based on two heuristics: the average suspiciousness score of the statements that directly affect the program output and the coverage ratio of those statements. To evaluate our approach, we used several evaluation metrics and conducted extensive experiments on programs containing single and multiple bugs, including both real and seeded faults. The empirical results demonstrate that the proposed heuristics can alleviate the coincidental correctness problem and improve the accuracy of SBFL techniques.
机译:尽管已经证明了基于频谱的故障定位(SBFL)方法的适用性,但由于同时发生的正确性的存在,它们的有效性可能会降低,这是当故障无法传播时发生的,即它们的执行不会导致故障。本文旨在通过减轻巧合的正确测试用例的影响来提高SBFL的有效性。在这方面,给定一个测试套件,其中每个测试都被分类为失败或通过,并且每个有故障的程序都有一个错误,我们提出一种基于程序切片的技术来识别直接影响程序输出的一组程序实体当执行失败的测试用例时,称为失败候选原因(FCC)。然后,我们使用FCC集来确定可以标记为巧合的测试用例。这些测试是基于两种启发式方法来识别的:直接影响程序输出的语句的平均可疑分数和这些语句的覆盖率。为了评估我们的方法,我们使用了几种评估指标,并对包含单个和多个错误(包括实际错误和种子错误)的程序进行了广泛的实验。实验结果表明,所提出的启发式方法可以缓解同时发生的正确性问题,并提高SBFL技术的准确性。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号