paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Do the Test Smells Assertion Roulette and Eager Test Impact Students’ Troubleshooting and Debugging Capabilities?

Assertion Roulette 与 Eager Test 测试异味是否影响学生的故障排查与调试能力?
ICSE 2023 IEEE/ACM 45th International Conference on Software Engineering: Software Engineering Education and Training (ICSE-SEET)2023匹配度 1/10 · 该论文通过受控实验研究测试异味(Assertion Roulette、Eager Test)对学生调试和修复生产代码错误的影响,属于软件测试与教育实证研究。它与用户关注的静态分析、LLM/Agent、浮点程序分析、贝叶斯程序分析等核心方向没有直接交集。引用 6 inbox
Wajdi Aljedaani, Mohamed Wiem Mkaouer, Anthony Peruma, Stephanie Ludi
crossref: 2026-09-12dblp: 2026-09-12arxiv: 2026-09-12

AI 速览

一句话:通过 96 名本科生的受控实验,发现测试异味(尤其 Assertion Roulette)会延长修复生产代码错误的时间。

单元测试用例也会出现不良编程实践,即测试异味,可能损害维护活动中的程序理解。该文关注两种常见测试异味 Assertion Roulette 与 Eager Test,对 96 名计算机科学本科生开展受控实验,考察它们如何影响学生调试和排查测试用例失败的能力。结果显示,当相关测试用例中存在测试异味时,学生修复生产代码错误所需时间更长,其中 Assertion Roulette 的影响尤为明显。作者希望这些发现能帮助教育界更好地培养学生编写和维护高质量测试用例的知识与资源。实验材料已在线公开。

问题
研究测试用例中的常见异味(Assertion Roulette、Eager Test)是否会降低学生定位和修复测试失败相关生产代码错误的能力。
方法
对 96 名计算机科学本科生进行受控实验,比较测试用例是否含有目标测试异味时学生的调试与排错表现。
评估
通过受控实验中学生的纠错时间等指标衡量表现,发现测试异味(尤其 Assertion Roulette)显著延长修复生产代码错误的时间。
原文摘要(Abstract)

To ensure the quality of a software system, developers perform an activity known as unit testing, where they write code (known as test cases) that verifies the individual software units that make up the system. Like production code, test cases are subject to bad programming practices, known as test smells, that hurt maintenance activities. An essential part of most maintenance activities is program comprehension which involves developers reading the code to understand its behavior to fix issues or update features. In this study, we conduct a controlled experiment with 96 undergraduate computer science students to investigate the impact of two common types of test smells, namely Assertion Roulette and Eager Test, on a student’s ability to debug and troubleshoot test case failures. Our findings show that students take longer to correct errors in production code when smells are present in their associated test cases, especially Assertion Roulette. We envision our findings supporting academia in better equipping students with the knowledge and resources in writing and maintaining high-quality test cases. Our experimental materials are available online11https://wajdialjedaani.github.io/testsmellstd/

链接与引用

DOI 原文 · arXiv · PDF(开放获取) · DBLP

BibTeX
@inproceedings{abs-2303-04234,
  title = {Do the Test Smells Assertion Roulette and Eager Test Impact Students’ Troubleshooting and Debugging Capabilities?},
  author = {Wajdi Aljedaani and Mohamed Wiem Mkaouer and Anthony Peruma and Stephanie Ludi},
  booktitle = {ICSE},
  year = {2023},
  doi = {10.1109/icse-seet58685.2023.00009}
}