Open
Description
For every test function I'm required to edit and evaluate the lisp template.
Otherwise every test in the current module (e.g test.py) is ran from top.
e.g. In order to debug test_foo
I'm required to change the value of :args
to "-k test_foo"
How can I test at point?
(dap-register-debug-template
""
(list :name "test_func_under_cursor"
:type "python"
:args "-k test_foo"
:cwd "${workspaceFolder}"
:program nil
:module "pytest"
:request "launch"))
test.py
def test_foo():
assert True
def test_bar():
assert True
Metadata
Metadata
Assignees
Labels
No labels