rust-shell-script / rust_cmd_lib

Common rust command-line macros and utilities, to write shell-script like tasks in a clean, natural and rusty way
https://docs.rs/cmd_lib/
Apache License 2.0
1.05k stars 37 forks source link

Possible examples of testing / mocking of outputs #62

Open Chaser opened 7 months ago

Chaser commented 7 months ago

Hello, love the library.

I am looking to see if there are examples available for testing / mocking the outputs. I have tried a number of methodologies to mock the output. I hope that I am able to test a number of scenarios.

gubasso commented 5 months ago

@Chaser , I am also interested on that topic!