Pynguin: Automated Unit Test Generation for Python

Stephan Lukasczyk, Gordon Fraser
2/10/2022
cs.SE

Official code: se2p/pynguin (1,396 stars, Python, MIT, last commit 2026-11-04).

Abstract

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

se2p/pynguinOfficial100%
MIT

The PYthoN General UnIt Test geNerator is a test-generation tool for Python

1,396105Python, FantomJul 27, 20203 weeks agoMIT
pythonsearch-based-software-testingtest-generationtest-generatortesting-tools

Similar Papers

Cite this paper

@article{lukasczyk2022pynguin,
  title  = {Pynguin: Automated Unit Test Generation for Python},
  author = {Stephan Lukasczyk and Gordon Fraser},
  year   = {2022},
  eprint = {2202.05218},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2202.05218}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2202.05218.svg)](https://codeofpaper.com/paper/2202.05218)

Discussion