1 //! A Test module confirming the functionality of `cargo->bazel` with remote crates. 2 3 use std::path::PathBuf; 4 use std::process::Command; 5 6 #[test] test_executable()7fn test_executable() { 8 let exe = PathBuf::from(env!("EXECUTABLE")); 9 10 let output = Command::new(exe) 11 .arg("--help") 12 .output() 13 .expect("Failed to run executable"); 14 15 let text = String::from_utf8(output.stdout).unwrap(); 16 17 assert!(text.contains("A random name generator with results like")); 18 } 19