arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1706.02217cs.SE
收藏

白盒测试正确性分类的探索性研究

Classifying the Correctness of Generated White-Box Tests: An Exploratory Study

David Honfi, Zoltan Micskei

摘要:

白盒测试生成器工具仅依赖于被测代码来选择测试输入,并将实现的输出捕获为断言。如果实现中有错误,它可能会被编码到生成的测试中。工具评估通常使用这种故障编码测试的数量来测量故障检测能力。然而,只有当开发人员能够识别出编码的行为是错误的时,这些错误才会被检测到。我们设计了一个探索性的研究,以调查开发人员如何执行分类生成的白盒测试作为错误或正确的。我们在实验室环境中与54名研究生进行了研究。这些测试是在IntelliTest工具的帮助下为两个开源项目生成的。参与者的表现进行了分析,使用二进制分类指标,并通过编码他们观察到的活动。结果表明,参与者错误地分类了大量的错误编码和正确测试(错误分类率中位数分别为33%和25%)。因此,真正的故障检测能力的测试生成器可能远远低于通常报告,我们建议考虑到这个人为因素时,评估生成的白盒测试。

英文摘要:

White-box test generator tools rely only on the code under test to select test inputs, and capture the implementation's output as assertions. If there is a fault in the implementation, it could get encoded in the generated tests. Tool evaluations usually measure fault-detection capability using the number of such fault-encoding tests. However, these faults are only detected, if the developer can recognize that the encoded behavior is faulty. We designed an exploratory study to investigate how developers perform in classifying generated white-box test as faulty or correct. We carried out the study in a laboratory setting with 54 graduate students. The tests were generated for two open-source projects with the help of the IntelliTest tool. The performance of the participants were analyzed using binary classification metrics and by coding their observed activities. The results showed that participants incorrectly classified a large number of both fault-encoding and correct tests (with median misclassification rate 33% and 25% respectively). Thus the real fault-detection capability of test generators could be much lower than typically reported, and we suggest to take this human factor into account when evaluating generated white-box tests.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑