killercup / killercup/convey

integration tests for piping human output to a file

Open
#8 0 comments 0 reactions 0 assignees View on GitHub
good first issue help wanted
Dominant language
Rust
Stars
38
Forks
6
PR merge metrics
No merged PRs in 30d

Description

- [ ] 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.

Contributor guide

Open the contributing guide

Research direction

Start by inspecting the Rust crate layout and how integration tests could be introduced; compare the mentioned assert_cmd, escargot, and duct approaches, including the possible sh-based setup. Done means tests cover piping human output to a file, confirm color information is omitted, and confirm interactivity is omitted.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli, testing-qa
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.