-
Notifications
You must be signed in to change notification settings - Fork 238
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
Captured stdout in a subtest (pytest-subtests) is not displayed properly #750
Comments
Is this an issue with pytest-html, or with pytest in general? I haven't used
And indeed, when I specify the tee option, I see the subtest output, which is identical to your result, only just not using pytest-html:
|
Thanks for pointing it out. I agree that the issue is in somewhere else (although there might be something to be looked at in pytest-html for how a sub test result is displayed differently between v3.2.0 v.s. v4.0.2) |
Captured stdout in a subtest is not displayed as expected. Tested with v3.2.0 and v4.0.2 - both have the issue in a different way. Also the issue behavior changes depending on the
--capture
option value. I triedfd
(the default value) andtee-sys
. Only v3.2.0 with--capture tee-sys
seems to work as expected.Results:
v3.2.0
-> Captured stdout from the subtest is missing
-> Looks good
v4.0.2
-> main test and subtest are displayed as separate tests. One has captured stdout from the main test, the other has captured stdout from the subtest
-> main test and subtest are displayed as separate tests. One has no captured stdout, the other has captured stdout from both main test and subtest
The text was updated successfully, but these errors were encountered: