question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Doesn't seem to work with pytest's --pdb mode

See original GitHub issue

With 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:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:8 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
reaperhulkcommented, Dec 9, 2020

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.

0reactions
nicoddemuscommented, Dec 13, 2020

0.4.0 is out. 🎉

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found