Skip to main content

Pytest Duration Insights

This python package offers a small dashboard that helps you investigate long running pytest runs. It's built on top of the report that is generated by pytest-reportlog.

Preview

We're hosting a demo on GitHub pages. You can view it here. There's also an educational video announcement on calmcode.io found here.

Instructions.

1. Install.

pip install pytest-reportlog pytest-duration-insights

2. Make a report.

pytest --report-log reportlog.jsonl

3. Explore!

pytest-duration-insights explore reportlog.jsonl

This will start up a service that tries to help you find areas in your testing code base that are worth investigating.

Parametrized Tests

This tool automatically hides the parametrized test results. But if these are very important to you then you can turn them on via the --no-trim flag.

pytest-duration-insights explore --no-trim reportlog.jsonl

Be aware that you might get very dense visuals when you do this.

Roadmap

We're only scratching the surface of what data we can visualise to help you speed up your pytest runs. Feedback is appreciated, especially if somebody has a keen insight that has helped in the past.

That said, this project is very much an experiment as well. See it as a tool you could try rather than a best practice.

Release files for pytest-duration-insights 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pytest-duration-insights 0.1.2
File Size Uploaded
pytest-duration-insights-0.1.2.tar.gz 69.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pytest-duration-insights 0.1.2
File Interpreter ABI Platform
pytest_duration_insights-0.1.2-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 139.6 kB

Release files / pytest-duration-insights-0.1.2.tar.gz

Download URL pytest-duration-insights-0.1.2.tar.gz
Size 69.5 kB
Tags Source
SHA-256 checksum
How to use checksums
9e87c50e4b4774f0e8d9d83c01a5602cdb9b7c9b4d5b41ffcb3f44567572bd2f
BLAKE2b-256 checksum
How to use checksums
8214a7d1bcb21640f3573722b7929ae333bd5794acee32946501f275dccc1846
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.13

Release files / pytest_duration_insights-0.1.2-py2.py3-none-any.whl

Download URL pytest_duration_insights-0.1.2-py2.py3-none-any.whl
Size 70.1 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
a25af021b2a59ffab4187a8591a1b76fbb3702adcd014efc628f81892c376ef6
BLAKE2b-256 checksum
How to use checksums
eee05466d8076c7e5f837a5cb9d111bfe6981e653c56bb5f87234f8680c3cf68
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.13

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page