Description
flakytest is an open-source profiler for pytest suites that shows where each test's time goes. It breaks every test into setup and call phases, and shows whether the time went to fixtures, database work, network calls, password hashing or sleeps, along with the exact lines in your code that cause it. It then ranks the fixes to make first, with the estimated time each one would save per run. The site says it knows the slow paths of Django, pytest-django, SQLAlchemy, FastAPI, factory_boy, requests and httpx, and that it works with pytest-xdist. You install it with pip and run pytest with the profile flag. It is free and runs locally with no account needed. An optional cloud can compare CI runs with developer machines. Uploads happen only when a token is set, and the site describes flakytest as a flaky test tracker that records every result.…
Highlights
- Profiles every pytest test by phase
- Points to the exact slow lines in your code
- Ranked fixes with estimated savings per run
- Knows the slow paths of Django, SQLAlchemy and FastAPI
- Free and local, with an optional cloud
Ratings & Reviews
No ratings yet
Be the first to rate FlakyTest.
People also visit
FlakyTest FAQ
What does it need to run?
Python 3.11 or newer with any recent pytest, according to the site FAQ.
Does profiling slow the tests down?
The site says the overhead is small, because the profiler runs in a separate process and samples the test process.
What gets uploaded to the cloud?
Only when FLAKYTEST_SECRET_TOKEN is set. Setting FLAKYTEST_UPLOAD=0 keeps a run local.
How do I start?
Run pip install flakytest, then run pytest with the --flakytest-profile flag.
What are the best FlakyTest alternatives?
Popular alternatives to FlakyTest include TestDino and Speedscope. See all FlakyTest alternatives















