FICHA · AUR

python-xdoctest

A Python package for executing tests in documentation strings

  • doctest runner
  • CLI
  • Dev
  • Launchable
  • Runs in terminal
official+codex · reviewed · Jun 3, 2026 description in en

Description

Examples embedded in docstrings can be executed as tests for Python projects. This tool helps maintainers keep documentation examples synchronized with real behavior while offering a more flexible doctest runner.

It runs project code during tests and can read files or execute examples selected by the test suite. Review doctest inputs before running untrusted projects.

How to run

xdoctest

Commands: xdoctest

Permissions

Permissions not analysed for this source yet.