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.
Metadata
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pytest-duration-insights-0.1.2.tar.gz | 69.5 kB | Without provenance | Details for pytest-duration-insights-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pytest_duration_insights-0.1.2-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for pytest_duration_insights-0.1.2-py2.py3-none-any.whl |
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
|
Security for pytest-duration-insights 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.