Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DescribeBlocks not supported out of the box in VSCode Testing #45

Open
jcampbell05 opened this issue Oct 23, 2023 · 0 comments
Open

DescribeBlocks not supported out of the box in VSCode Testing #45

jcampbell05 opened this issue Oct 23, 2023 · 0 comments

Comments

@jcampbell05
Copy link

jcampbell05 commented Oct 23, 2023

VSCode seems to have an issue with describe blocks, it doesn't know what to do with them and so won't add them to the list of tests (it uses pytest's --collect-only output to discover them).

However it understands test case classes, so there might be a way to get them to work without relying on support from any IDE by wrapping any describe function as a test class ?

So that this:

def describe_me():
    def test_it_works():
       pass

Would look the same as :

class describe_me(unittest.TestCase):
    def test_it_works(self):
       pass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant