AmPyfier:Python中的测试放大
AmPyfier: Test Amplification in Python
摘要:
测试放大是一种将手写测试扩展为更严格的测试套件的方法,该测试套件覆盖了被测系统中的角案例。不幸的是,目前的测试放大技术严重依赖于程序分析技术,这些技术从静态类型语言(如Java和C++)中的显式类型声明中受益匪浅。在动态类型语言中,这种类型声明是不可用的,因此测试放大还没有找到适合程序设计语言(如Python、Ruby和JavaScript)的方法。在本文中,我们提出了AmPyfier,一个概念验证工具,它带来了测试放大的动态类型,解释语言Python。我们在7个开源项目上评估了这种方法,发现AmPyfier可以成功地增强10个测试类中的7个(70%)。因此,我们证明,测试放大是可行的最流行的程序设计语言在今天使用的。
英文摘要:
Test Amplification is a method to extend handwritten tests into a more rigorous test suite covering corner cases in the system under test. Unfortunately, the current state-of-the-art for test amplification heavily relies on program analysis techniques which benefit a lot from explicit type declarations present in statically typed languages like Java and C++. In dynamically typed languages, such type declarations are not available and as a consequence test amplification has yet to find its way to programming languages like Python, Ruby and Javascript. In this paper, we present AmPyfier, a proof-of-concept tool, which brings test amplification to the dynamically typed, interpreted language Python. We evaluated this approach on 7 open-source projects, and found that AmPyfier could successfully strengthen 7 out of 10 test classes (70%). As such we demonstrate that test amplification is feasible for one of the most popular programming languages in use today.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。