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.

Add action to list and execute sub cases individually, just like test cases

See original GitHub issue

Checklist

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.

image

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 image

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

github_iconTop GitHub Comments

0reactions
yudi-azvdcommented, Dec 3, 2021

ok, I get it now. Thanks for the explanation

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Write Test Cases: The Ultimate Guide with Examples
As a tester, whenever you are asked to write test documentation, do not just start away in an ad hoc manner. It is...
Read more >
How to group test cases in TestNG [with Examples]
In this tutorial, you will learn how to group test cases in TestNG along with the demonstration with relevant TestNG group examples.
Read more >
Create manual test cases - Azure Test Plans | Microsoft Learn
Create manual test cases to test your deliverables and assign testers. Use Excel and manage your test cases.
Read more >
unittest — Unit testing framework — Python 3.11.1 ...
A test suite is a collection of test cases, test suites, or both. It is used to aggregate tests that should be executed...
Read more >
doctest/tutorial.md at master - GitHub
We introduce test cases with the TEST_CASE macro. It takes one argument - a free form test name (for more see Test cases...
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