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

Pynguin:Python的自动单元测试生成

Pynguin: Automated Unit Test Generation for Python

Stephan Lukasczyk, Gordon Fraser

摘要:

自动化单元测试生成是一种众所周知的方法,旨在减少开发人员手工编写测试的工作量。以前的研究主要集中在静态类型的程序设计语言,如Java。然而,在实践中,动态类型语言在过去十年中得到了巨大的普及。这也介绍了对这些语言的测试生成工具和研究的需求。我们介绍了Pynguin,一个可扩展的Python测试生成框架,它可以生成具有高代码覆盖率的回归测试。Pynguin被设计成易于从业者使用;它也是可扩展的,允许研究人员根据他们的需求进行调整,并使未来的研究成为可能。我们在https://youtu.be/UiGrG25Vts0上提供了Pynguin的演示;更多信息、文档、工具及其源代码可以在www.example.com上获得。

英文摘要:

Automated unit test generation is a well-known methodology aiming to reduce the developers' effort of writing tests manually. Prior research focused mainly on statically typed programming languages like Java. In practice, however, dynamically typed languages have received a huge gain in popularity over the last decade. This introduces the need for tools and research on test generation for these languages, too. We introduce Pynguin, an extendable test-generation framework for Python, which generates regression tests with high code coverage. Pynguin is designed to be easily usable by practitioners; it is also extensible to allow researchers to adapt it for their needs and to enable future research. We provide a demo of Pynguin at https://youtu.be/UiGrG25Vts0; further information, documentation, the tool, and its source code are available at https://www.pynguin.eu.

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

↑