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

TestSelector:学生项目测试套件自动选择--扩展版

TestSelector: Automatic Test Suite Selection for Student Projects -- Extended Version

Filipe Marques, António Morgado, José Fragoso Santos, Mikoláš Janota

摘要:

计算机科学课程的教师通常必须创建全面的测试套件来评估编程作业。创建这样的测试套件通常不是微不足道的,因为它涉及到从一组(半)随机生成的测试中选择有限数量的测试。当考虑到所需的大量测试输入时,例如,用于评估算法练习的手动测试选择策略不能扩展。为了促进这一过程,我们提出了Teststory,一个新的框架,自动选择最佳的测试套件的学生项目。与现有方法相比,Teststrom的主要优点是它可以轻松地扩展任意复杂的代码覆盖度量,而不需要将这些度量编码到精确约束求解器的逻辑中。我们展示了Testernet的灵活性,通过扩展它支持一系列经典的代码覆盖率的措施,并使用它来选择测试套件的一些现实世界的算法项目,进一步表明,所选的测试套件优于随机选择的学生的代码中发现的错误。

英文摘要:

Computer Science course instructors routinely have to create comprehensive test suites to assess programming assignments. The creation of such test suites is typically not trivial as it involves selecting a limited number of tests from a set of (semi-)randomly generated ones. Manual strategies for test selection do not scale when considering large testing inputs needed, for instance, for the assessment of algorithms exercises. To facilitate this process, we present TestSelector, a new framework for automatic selection of optimal test suites for student projects. The key advantage of TestSelector over existing approaches is that it is easily extensible with arbitrarily complex code coverage measures, not requiring these measures to be encoded into the logic of an exact constraint solver. We demonstrate the flexibility of TestSelector by extending it with support for a range of classical code coverage measures and using it to select test suites for a number of real-world algorithms projects, further showing that the selected test suites outperform randomly selected ones in finding bugs in students' code.

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

↑