convey icon indicating copy to clipboard operation
convey copied to clipboard

integration tests for piping human output to a file

Open killercup opened this issue 7 years ago • 0 comments

  • [ ] Integration testing is set up

    There are various option how to do it, e.g. using examples or subcrates. Will most likely benefit from using assert_cmd and/or escargot.

  • [ ] Assert that piping to a file omits any color information

  • [ ] Assert that piping to a file omits any interactivity

The 'duct' crate allows spawning a command and piping its stdout/stderr to a buffer/file. I'm not sure how realistic that is (setting TERM env vars and such), so we might have to just spawn a sh instead.

killercup avatar Oct 06 '18 09:10 killercup