Replies: 2 comments 8 replies
-
If you're seeing |
Beta Was this translation helpful? Give feedback.
8 replies
-
I've tested this alternative solution and it works well: def generate_test_cases(suite):
for test in suite:
if isinstance(test, unittest.TestCase):
yield test
else:
yield from generate_test_cases(test)
loader = unittest.TestLoader()
suite = loader.discover("<START DIR HERE>", pattern="test*.py")
print("\n".join(s.id() for s in generate_test_cases(suite))) I'll submit a PR for this shortly, once I read the contribution guidelines etc. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've got a very simple unittest-based set up. My
settings.json
has this:When doing test discovery I get this output:
However I can run the tests just fine! I get the output in the Python Debug console.
Can anyone shed any light on this?
(Running 1.57.1 on Ubuntu 20.04, Python extension version 2021.6.944021595)
Beta Was this translation helpful? Give feedback.
All reactions