# se2p/pynguin

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

Repository: https://github.com/se2p/pynguin
Canonical: https://ross.abutalabs.com/products/pynguin
Homepage: https://www.pynguin.eu
Language: Python
License: MIT
License Family: permissive
Topics: python, testing-tools, test-generation, test-generator, search-based-software-testing
Last push: 2026-08-25T06:47:45+00:00

## Health v2 (maintenance only)
Score: 93/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 99, release rhythm 82, longevity 100
- inputs: {"age_days": 2228, "days_push": 8, "days_rel": 43, "gap_med": 86.5, "n_releases_24m": 7}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1383, forks 97 (observed 2026-08-28T04:04:34.638172+00:00)

## What it is
Pynguin is a command-line tool that automatically generates unit tests for Python programs using search-based and random testing techniques. It is a research prototype developed at the University of Passau, extensible for implementing new test-generation approaches.

## Use cases
- automatically generate unit tests for my python module
- generate pytest test cases without writing them manually
- search-based unit test generation for python code
- improve test coverage on an untested python library
- research tool for automated software testing experiments
- bootstrap a test suite for a legacy python project

## When to choose
- you need automated unit test generation for Python code
- you are conducting research on search-based software testing
- you want to quickly bootstrap tests for untested Python modules in an isolated environment

## When to avoid
- you need a production-grade, polished testing tool
- running untrusted code on your machine is unacceptable without sandboxing
- you need test generation for statically typed languages like Java

## Facets
- artifact type: cli-tool
- maturity: active
- function: testing, cli, developer-tools
- domain: testing, developer-tools
- platform: python, cli, cross-platform
- tags: test-generation, search-based-software-testing, unit-testing, research-prototype, automated-testing, python, docker

## Member repositories
- se2p/pynguin (main) score 93

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:34.638172+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:40:04.108776+00:00, confidence not recorded.
  - readme: https://github.com/se2p/pynguin (fetched 2026-08-28T04:04:34.638172+00:00, sha 8e33ec7783be)
  - homepage: https://www.pynguin.eu (fetched 2026-08-29T11:55:53.366479+00:00, sha 726b9a0c957a)
  - registry_pypi: https://pypi.org/pypi/pynguin/json (fetched 2026-08-29T11:55:53.369638+00:00, sha 3d3839417c97)
- Data as of 2026-08-30T08:39:29.467469+00:00.
