Reputation: 968
I'm struggling with pytest configuration. I would like to:
breakpoint()
wherever I want in my tests to start debugging sessions,Pytest
output (PASSED
in green, for instance) and for the loosely coupled debugging code I'm writing (what follows >ipdb
in the screenshot below),breakpoint()
inputs,iPython
,--pdb
flag.(from highest to lowest priority)
Here is the context: I'm doing TDD and I'd like to have the most comfortable working environment.
For now, I've set PYTHONBREAKPOINT
to "IPython.terminal.debugger.set_trace"
(doc) and I run pytest
with --pdbcls=IPython.terminal.debugger:Pdb
(cf. this other question).
I haven't given bpython a try, should I consider this alternative?
Upvotes: 2
Views: 65