-
Notifications
You must be signed in to change notification settings - Fork 29
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
No test report when pytest can't repr() a test failure in --showlocals mode #74
Comments
@yozlet Thank you for the issue! I'll take a look. |
@yozlet Just a small update on this issue. I have tried to reproduce it on my Linux machine, and everything worked as expected. A little bit later I will try to reproduce this on Mac and CI. |
Ah, here's the differentiator - the
Without Trouble is, |
It looks like this is a pytest bug happening when using |
@yozlet The issue in pytest has already been fixed. I will close this issue since it has nothing to do with the extension. Please, recheck this case after the new release of pytest. If there would be any other problems, feel free to create a new issue. |
Many thanks for chasing this up and fixing it on the pytest side - that's far beyond the call of duty! |
When using pytest, the test adapter will report a blank result (no success or failure) if a test fails and pytest raises an exception when reporting the test failure.
Here's
example_tests.py
:Expected output: Test Explorer shows one pass, one fail.
Actual output: Test Explorer shows no test results; the icons to the left of the tests in the tree go back to the square-in-circle. Clicking the test nodes does nothing. The
Python Test Adapter Log
just shows a normal execution that completes.I'm not completely sure what's happening here because when running pytest on the command line, the tests execute fully, and the exception caused by the
__repr__
failure is contained within the output:The text was updated successfully, but these errors were encountered: