-
-
Notifications
You must be signed in to change notification settings - Fork 71
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
Show stderr in test output #86
Comments
|
On what platform it does not work? |
No way! It works for Windows too! 😃 Well, I'm shut up. I don't see a reason why not to do that in this way. |
Sent pull request #89 |
We were discussing it with @dg and we agreed that stderr should be captured by Job separately. I tried to implement it, but there is really a lot of proc_open()'s bugs espacially on Win. The main problem is with stderr as pipe and large output. Bugs #65650, #51800, #64438, #60120. For some I found workaround, but for some not on PHP 5.3.3. The bug behavior is that the process get stuck when reading even single byte from stdout or stderr. One solution is use Next solution is use it and just pray for stderr shorter 2048 bytes ;-) The safest way is close the stderr immediately after proc_open() as it is done now. The next is use proposed I have no more ideas... |
Btw. @MartinMystikJonas When is the stderr hidden? If I use |
@milo Did you manage to solve this issus on Windows or did you give up? I have one idea how to solve this. It's not strictly clean but if we need workaround bug I think it is acceptable. My idea is to output stderr to custom temp file (similarly to lock file used in What do you think? Could this solution work? |
@MartinMystikJonas I didn't solve this, din't give up yet.
That's I wrote above with the Maybe solution is just mix stdin and stdout together as proposed. Who cares about wrong HTTP headers parsing. If is header needed by test, it just fails. |
Well what about use just |
@MartinMystikJonas Not so on Linux. But interesting idea... |
@milo My bad. I did not try it :-) |
Is there reason why tester shows only content of stdout of test execution after test failure?
I just spent about hour trying to figure out why my tests suddenly failing with no information at all, because causing exception was written to stderr.
It should be sufficient to append "2>&1" to Job command at Job.php:77
Or is there reason for not doing so?
The text was updated successfully, but these errors were encountered: