rust-lang-ua / rustcamp

Getting ready for prod
397 stars 75 forks source link

Mention crates that help to test CLI applications. #47

Closed mhnap closed 9 months ago

mhnap commented 1 year ago

Problem to solve

There is already a lot of information in the 3_ecosystem chapter about building robust CLI applications. However, I think there is a gap in providing information about crates that are essential for testing CLI applications. Currently, participants need to spend (waste) their time on research trying to find best practices and crates for CLI testing. It would be more productive if this incubator already mentioned some common and popular crates for CLI testing.

Proposal

Add to 3_1_testing (or 3_9_cmd_env_conf) chapter a small section about CLI testing. It should mention common best practices and preferred crates for CLI testing. For example:

Links & references

https://rust-cli.github.io/book/tutorial/testing.html (definitely need to add, maybe even whole book) https://www.rustadventure.dev/building-a-digital-garden-cli/clap-v4/testing-interactive-clis-with-rexpect (very good examples) https://out-of-cheese-error.netlify.app/the-way (again good examples)

SupperZum commented 9 months ago

Thank you! Taken into account and added it to the program)