-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Discovery lens not working with pytest >= 3.7 #2663
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
Comments
Unfortunately there isn't a work-around short of you adding a |
thanks. hopefully it will be solved by pytest |
note that you shouldn't just parse text output of pytest - you should invoke it with a plugin instead that correctly collects the internal details |
@RonnyPfannschmidt yep, we know. 😄 Plan to address it when we clean-up our testing scenarios. |
When discovering test with pytest>=3.7 if the test directory is a package the reported files do not include their path if they are in a subfolder.
With a file structure like
The reported output of pytest is
There is no indication that
foo_test.py
is inside the foldersubfolder
, so the extension fails to show the lens on the filesubfolder/foo_test.py
I've created a minimal example: https://github.com/CaselIT/pytest-discovery-bug
I've reported the bug also on the pytest repo pytest-dev/pytest#4024, since it seems to be an issue of pytest.
I'm opening this to check if there is a work around to this issue in the meantime
Environment data
The text was updated successfully, but these errors were encountered: