Trace and visualize your Python code. Generate working tests.
π docs.kolo.app
Screenshot of Kolo from the Todo Demo app
Getting started with Kolo only takes a couple of minutes. The fastest way to understand what Kolo does and how it can be helpful is by trying it out on a codebase you work on. But if you're in a hurry or can't try Kolo on your own codebase, you can preview some functionality in our playground.
Trace a Django request for inspection, visualization, and debugging purposes.
pip install kolo
"kolo.middleware.KoloMiddleware"
to the top of your MIDDLEWARE list in settings.pypython manage.py runserver
and make a request to any page.localhost:8000/_kolo/
to view your traced request. It should look similar to the screenshot at the top of the page π(For a more in-depth version of this tutorial see How to: Trace Django requests)
Now that we have a trace recorded, we can generate a working integration test from that trace.
Every codebase has different testing requirements and code style. You can customize Kolo's test generation to suit your needs. Learn more about how to do this in How to: Customize test generation
Based on the data captured in the trace, Kolo first generate a test plan which includes the various "steps" it intends to include in the integration test. Each step in the plan is derived from some information in the trace itself. Then, based on the plan, Kolo then generates the test code on the left of the page. Learn more about how Kolo test generation works in this blog post
If you have any questions or trouble getting set up with Kolo, please get in touch with us. We're here to help and would love any feedback!
What Kolo looks like when used with a real world Django application (Simple Poll)