pytest-timestamper
Pytest plugin to add a timestamp prefix to the pytest output
What it is and what it does
pytest-timestamper is a pytest plugin that automatically prepends a timestamp to each test result line in your test output. When you run pytest, instead of seeing just the test name and result, you see the exact time each test started, making it easier to spot which tests are slow or to correlate test runs with external events. The plugin activates on installation and requires no configuration to use, though it does support custom timestamp and prefix formats via command-line flags.
The plugin has no runtime dependencies and installs as a simple wheel. It is classified as dormant—the last commit was in March 2024 and there have been no releases in over 870 days—so while it should continue to work for existing pytest versions, it may not track newer pytest or Python releases. The license is unspecified in the package metadata, which is a minor risk if you need explicit license clarity.
Use it for:
- Correlate slow test runs with timestamps to identify when performance degraded or external services were unavailable.
- Debug test flakiness by seeing the exact time each test ran and cross-referencing with system logs or monitoring data.
- Track test execution duration in CI/CD logs where you need to know when each test started, not just how long it took overall.
- Monitor long test suites to spot which tests are taking longer than expected on particular runs.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
A pytest plugin that prefixes each test output line with a timestamp, helping you see when individual tests started running.
Yes, if you want a simple timestamp prefix in pytest output and don't need active maintenance. The plugin is low-friction to install, has no dependencies, and works out of the box. However, the dormant status and unclear license mean you should verify it works with your pytest version and clarify the license before using it in production or commercial contexts.
Install
pytest-timestamper on PyPI
pip
pip install pytest-timestamperuv
uv add pytest-timestamperpoetry
poetry add pytest-timestamperInstalling pytest-timestamper
Before you install
Low friction install with no runtime dependencies. The project is dormant (last commit 2024-03-27, no releases in 870 days), but the wheel distribution and straightforward pytest integration mean it should work without maintenance overhead.
License in practice
License status is unclear—no SPDX identifier or raw license text is recorded. Before relying on this in a commercial or copyleft-sensitive context, verify the actual license in the repository.
Quickstart
pip install pytest-timestamper
python3 -m pytest -v
# Timestamps now appear in output: [2021-06-06 12:19:06] tests/test_one.py::test_dummy PASSED
Verify before relying
- Whether the plugin works with pytest versions beyond 6.3.0.dev494 (the version shown in the example output)
- Compatibility with Python 3.10+ (classifiers only list up to 3.9)
- Whether customization via --prefixfmt and --datefmt options works as documented
Package facts
| License | not declared (unclear) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | dormant — 870 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 478,332/month — #6,437 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: pytest_timestamper-0.0.10-py3-none-any.whl
Tags
More Testing packages
Pluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
pytestpytest is a testing framework that lets you…
permissive · top 100 on PyPI
virtualenvvirtualenv creates isolated Python environments…
permissive · top 100 on PyPI
coverageCoverage.py measures which lines of Python code…
permissive · top 1,000 on PyPI
pytest-asynciopytest-asyncio is a pytest plugin that enables…
permissive · top 1,000 on PyPI
pytest-json-ctrfA pytest plugin that generates test reports in…
permissive · top 1,000 on PyPI
pytest-onlyA pytest plugin that runs only tests marked…
permissive · top 15,000 on PyPI
pytest-isortA pytest plugin that automatically checks…
permissive · top 15,000 on PyPI
pytest-find-dependenciesA pytest plugin that identifies dependencies…
permissive · top 5,000 on PyPI
pytest-durationsA pytest plugin that measures and reports…
permissive · top 5,000 on PyPI
pytest-pep8A pytest plugin that integrates PEP8 style…
permissive · top 15,000 on PyPI
pytest-skip-slowA pytest plugin that skips tests marked with…
permissive · top 15,000 on PyPI
opentimestamps-clientCommand-line tool to create and verify…
copyleft · top 15,000 on PyPI
uuid7-standardGenerates and parses UUIDv7 identifiers with…
permissive · top 15,000 on PyPI
pyRFC3339Parses and generates RFC 3339-compliant…
permissive · top 5,000 on PyPI
pytest-watcherAutomatically reruns pytest (or another test…
permissive · top 5,000 on PyPI