httpdbg - a tool to trace the HTTP requests in your tests #11709
Unanswered
cle-b
asked this question in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I’m working on a tool that helps to debug HTTP requests in a python program. I use it mainly for
pytest
, when I want to trace all the HTTP requests sent by the tests.I share the information here because I think it could be useful for people who are working on a large tests suite with a lot of HTTP requests.
I tried to make the usage as simple as possible.
To use it:
httpdbg
package in your venv:pip install httpdbg[pytest]
pytest
command usingpyhttpdbg
:pyhttpdbg -m pytest tests/
(there is nothing to change in your tests or in the pytest command line arguments)
http://localhost:4909/
:That’s it.
Have a nice day,
Clément.
httpdbg source documentation
Beta Was this translation helpful? Give feedback.
All reactions