测试气味断言轮盘赌和急切的测试影响学生的故障排除和故障排除能力吗?
Do the Test Smells Assertion Roulette and Eager Test Impact Students' Troubleshooting and Debugging Capabilities?
摘要:
为了确保软件系统的质量,开发人员执行称为单元测试的活动,其中他们编写代码(称为测试用例)来验证组成系统的各个软件单元。与生产代码一样,测试用例也会受到不良编程实践的影响,这些实践被称为测试气味,会损害维护活动。大多数维护活动的一个重要部分是程序理解,这涉及到开发人员阅读代码以了解其行为,以修复问题或更新功能。在这项研究中,我们进行了一个对照实验,96名本科计算机科学的学生调查的影响,两种常见类型的测试气味,即断言轮盘赌和渴望测试,对学生的能力,调试和故障排除测试用例失败。我们的研究结果表明,当相关测试用例中存在气味时,学生需要更长的时间来纠正生产代码中的错误,特别是断言轮盘赌。我们设想我们的研究结果支持学术界更好地为学生提供编写和维护高质量测试用例的知识和资源。我们的实验材料可在线获取:https://wajdialjedaani.github.io/testsmellstd/
英文摘要:
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 online: https://wajdialjedaani.github.io/testsmellstd/
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。