Doesn't seem to work with pytest's --pdb mode
See original GitHub issueWith pytest 5.4.1 & pytest-subtests 0.3.0, assertion failures in subtests don’t invoke pdb
for me. Assertion failures in the parent test do though.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:8 (7 by maintainers)
Top Results From Across the Web
Can I debug with python debugger when using py.test ...
I wish to debug my test code with the python debugger the normal way (by which I mean pdb.set_trace() in the code) but...
Read more >Debugging Your Unit Test Suite in Python | Capital One
Debugging the test case My first step in this situation is to rerun the test with the --pdb option and start looking around....
Read more >Chapter06 Debugging Pytest Pdb - Pragmatic AI Labs
My go-to weapon when a print statement doesn't work is to put in “one-liner” that invokes the python debugger pdb . Let's watch...
Read more >Debugging "pytest" tests with "ipdb" debug mode - YouTube
Debug Mode in " pytest " can be triggered in a few different ways:1) Your test raises an exception after passing the "--...
Read more >pdb — The Python Debugger — Python 3.11.1 documentation
The debugger prompt appears before any code is executed; you can set breakpoints and type continue , or you can step through the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
There’s a lot of noise in our CI measurements, but we’re seeing improvements in total wall-clock time of ~20-30% across our full test suite. Collection time is vastly improved, but much of that is just because it’s done lazily now. This might make
pytest-xdist
feasible for us though since previously collection was very expensive.0.4.0
is out. 🎉