svaante / dape

Debug Adapter Protocol for Emacs
GNU General Public License v3.0
448 stars 25 forks source link

debugpy-module: how to just run the current test method in pytest #113

Closed Peter-Chou closed 2 months ago

Peter-Chou commented 2 months ago

debugpy-module :module "pytest" works well, but It will run all the tests sequentially until reach the breakpoint, Is there a way to start and just run the current method?

johannes-mueller commented 2 months ago

I am working on that as part of my test-cockpit.el package. There is already a pull request johannes-mueller/test-cockpit.el#27 for dape support for debugpy but it still lacks a bit of testing in practice and documentation.

Basically you use test-cockpit.el to run your unit tests. For python it gives you the option of running the last test as a Dape debug session.

In my first tests it works nicely. Feel free to try it out and give feedback.