Add action to list and execute sub cases individually, just like test cases
See original GitHub issueChecklist
- Checked Support page
Is your feature request related to a problem? Please describe.
When using SUBCASE
from doctest, the Test Explorer only lists the test cases, but not the sub cases individually. Besides that
if a subcase fails the test, the entire test case fails. To debug the failing subcase I can set a breakpoint inside the method
parser.runOn()
(see the picture below), but the debugger will stop at the breakpoint in all subcases instead of just stopping at the failing subcase. It’s actually running all sub cases in the test case.
I’ve tried setting the breakpoint in the subcase and when the debugger stopped I would go to the body of the method and then re enable the breakpoints inside it. It works, but well… it’s not optimal.
Describe the solution you’d like It would be very nice if the extension could list and run each sub case individually just like with test cases. And have these buttons as well
Note
I think doctest can’t list sub cases with -sc
right now. I mean, it should because it is described in the docs. But I can’t get that to work. I think it’s a bug so I opened the a issue there some days ago. Just something to keep in mind if you decide solve this issue 😃
Edit: added link to mentioned issue.
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (3 by maintainers)
Top GitHub Comments
https://github.com/microsoft/vscode/issues/133338
ok, I get it now. Thanks for the explanation