use assert_cmd::prelude::*; use std::process::Command; #[test] fn run() -> Result<(), Box> { let mut cmd = Command::cargo_bin("daikokucli")?; cmd.args(["version"]); cmd.assert().success(); Ok(()) }