Registry / testing / pytest-tldr

pytest-tldr

JSON →
library0.2.6pypypi✓ verified 87d ago

A pytest plugin that limits output to just the things you need, stripping verbose tracebacks and summarizing failures. Current version 0.2.6, infrequent updates.

pip install pytest-tldr
INSTALL
IMPORT
SIG · PYTEST-TLDR
P
pytest-tldr
testingpythonv0.2.6
Install
2.7s avg
Import
374ms
Disk
29MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.2.6 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.394s · 30.8MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 2.7s · import 0.354s · 31MB
29MB installed
● package 29MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

pytest
import pytest
Plugin auto-activates; no explicit import needed.

Create tests and run with --tldr flag to suppress verbose output.

# Write a test file (e.g., test_example.py) def test_pass(): assert 1 + 1 == 2 def test_fail(): assert 1 + 1 == 3 # Run: pytest --tldr test_example.py
Debug
Known issues
gotchapytest-tldr is only compatible with Python >=3.10. If you use an older Python, installation fails or plugin doesn't load.
fix
Upgrade Python to 3.10 or later.
affects: >=0.2.6
gotchaThe plugin requires pytest >=6 (for v0.2.4+) or >=7.2 (for v0.2.5+). Using an older pytest version may cause compatibility errors.
fix
Ensure pytest version meets requirement: pip install 'pytest>=7.2'
affects: >=0.2.4
deprecatedOlder versions (before 0.2.4) used '--tldr' as a boolean flag; later versions support it as a value flag (e.g., --tldr=short). Check docs if using older style.
fix
Update to latest version and use --tldr=<mode> if needed.
affects: <0.2.4
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'pytest_tldr'
Plugin not installed or not in the same Python environment.
fix
Run: pip install pytest-tldr
pytest: error: unrecognized arguments: --tldr
Plugin not registered or pytest version too old (<6).
fix
Install plugin: pip install pytest-tldr. Ensure pytest >=6.
Upgrade
Version history
0.2.6latest on PyPI · released Nov 10, 2025
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
pytest-tldr — pip install pytest-tldr · libregistry