Skip to content

spawn() fails to properly exercise terminal applications #136

Description

@bcoe

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:

info:    module name:        | yargs               
info:    version:            | 4.7.0               
info:    done                | The smoke test has passed.

After digging further, I realized that it is related to spawn() being run with the default pipe behavior. If I switch to stdio: "inherit", tests start failing:

screen shot 2016-05-15 at 2 39 00 pm

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions