1 2 3 4 5 6 7 8 9 10 11
use rexpect::error::Error; use rexpect::spawn; #[test] fn test_interactive_cli_help() -> Result<(), Error> { let mut p = spawn("cargo run -- help", Some(5000))?; p.exp_string("CLI for the Zero service")?; p.exp_string("Manage teams")?; Ok(()) }