Thanks to visit codestin.com
Credit goes to github.com

Skip to content

koaning/pytest-duration-insights

Repository files navigation

Pytest Duration Insights

This python package offers a small dashboard that helps you investigate long running CI jobs. 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.
python-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.

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.

About

A mini dashboard to help find slow tests in pytest.

Resources

Stars

Watchers

Forks

Packages

No packages published