mod fixtures; use fixtures::*; #[test] /// Show help and exit. fn help_shows() -> Result<(), Error> { Command::cargo_bin("miniserve")? .arg("-h") .assert() .success(); Ok(()) } #[test] /// Show version and exit. fn version_shows() -> Result<(), Error> { Command::cargo_bin("miniserve")? .arg("-V") .assert() .success() .stdout(format!("{} {}\n", crate_name!(), crate_version!())); Ok(()) }