Skip to main content

No project description provided

Project description

<img src=”https://github.com/koaning/pytest-duration-insights/blob/main/logo.png” width=”225” height=”225” align=”right” />

` Nearly ready, just gotta make sure we package the static web stuff properly. `

# 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.

## Instructions.

  1. Install.

` pip install pytest-reportlog pytest-duration-insights `

  1. Make a report.

` pytest --report-log reportlog.jsonl `

  1. Run this app.

` 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.

## Preview

We’re hosting a demo of this service on GitHub pages. You can view it [here](https://koaning.github.io/pytest-duration-insights/).

## Roadmap

We’re only scratching the surface of what the reportlog.jsonl file gives us. We might, for example, also explore how long it takes to setup/teardown tests. 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 thing 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

pytest-duration-insights-0.0.3.tar.gz (3.7 kB view hashes)

Uploaded source

Built Distribution

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page