-
Notifications
You must be signed in to change notification settings - Fork 148
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
spawn() fails to properly exercise terminal applications #136
Comments
@jasnell @thealphanerd silly question, could we live with the noisy output? the value is that we exercise libraries that interact with stdout/stderr in a more realistic way ... we'd now be in a position to catch nodejs/node#6456 in the future. |
if the test suite still passes and it doesn't cause CI to run super slow I'm all for it |
I'm ok with it also as long as it makes the tests more reliable and we still get the output we need. |
@jasnell @thealphanerd I'll submit a working branch that has the noisy output, and a failing run of yargs related to |
Would landing nodejs/node#4598 on v4.x help? We are no longer support 0.10 / 0.12 |
Is there still something to do here? |
@targos I think you could probably close this, it's pretty stale. |
I noticed while attempting to recreate a failing test case related to yargs #497 that I could not get citgm to fail (as expected) on a test outputting a large chunk of text to the terminal:
After digging further, I realized that it is related to
spawn()
being run with the defaultpipe
behavior. If I switch tostdio: "inherit"
, tests start failing:Unfortunately, using
inherit
results in very noisy output.I'm not sure what the best fix is here, but I think we'd be smart to eliminate the discrepancy between a user interacting with the terminal, and
citgm
consuming a spawned terminal output.The text was updated successfully, but these errors were encountered: