No project description provided
Project description
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.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pytest-duration-insights-0.1.2.tar.gz
.
File metadata
- Download URL: pytest-duration-insights-0.1.2.tar.gz
- Upload date:
- Size: 69.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e87c50e4b4774f0e8d9d83c01a5602cdb9b7c9b4d5b41ffcb3f44567572bd2f |
|
MD5 | eb15b4ae15689d9c7ab43237e4a4c6fd |
|
BLAKE2b-256 | 8214a7d1bcb21640f3573722b7929ae333bd5794acee32946501f275dccc1846 |
File details
Details for the file pytest_duration_insights-0.1.2-py2.py3-none-any.whl
.
File metadata
- Download URL: pytest_duration_insights-0.1.2-py2.py3-none-any.whl
- Upload date:
- Size: 70.1 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a25af021b2a59ffab4187a8591a1b76fbb3702adcd014efc628f81892c376ef6 |
|
MD5 | f614a65f267a9093797c9d6e89419491 |
|
BLAKE2b-256 | eee05466d8076c7e5f837a5cb9d111bfe6981e653c56bb5f87234f8680c3cf68 |