skillfed

pytest-timestamper

Pytest plugin to add a timestamp prefix to the pytest output

pytest-timestamper v0.0.10 478.3K downloads/30d#6,437 on PyPI3
License unclear DORMANT released

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-timestamper

uv

uv add pytest-timestamper

poetry

poetry add pytest-timestamper

Installing 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

Framework :: PytestProgramming Language :: Python :: 3Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9

Tags

pytest timestamp plugintest output timestampspytest timing prefixwhen did test runpytest test timingpytest execution timestampstest start time logging
pytest-plugintest-timing

More Testing packages