macro_rules! cargo_bin {
() => { ... };
($bin_target_name:expr) => { ... };
}Expand description
The absolute path to a binary target’s executable.
The bin_target_name is the name of the binary
target, exactly as-is.
NOTE: This is only set when building an integration test or benchmark.
§Example
ⓘ
use assert_cmd::prelude::*;
use assert_cmd::cargo::cargo_bin;
use std::process::Command;
let mut cmd = Command::new(cargo_bin!())
let output = cmd.unwrap();