svaante / dape

Debug Adapter Protocol for Emacs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

Peter-Chou opened this issue · comments

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?

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.