We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
cargo_bin!
1 parent 375e147 commit 069482bCopy full SHA for 069482b
src/macros.rs
@@ -42,13 +42,15 @@ macro_rules! crate_name {
42
///
43
/// ## Example
44
45
-/// ```rust,no_run
46
-/// #[test]
47
-/// fn cli_tests() {
48
-/// trycmd::TestCases::new()
49
-/// .default_bin_path(trycmd::cargo_bin!())
50
-/// .case("tests/cmd/*.trycmd");
51
-/// }
+/// ```rust,ignore
+/// use assert_cmd::prelude::*;
+/// use assert_cmd::cargo::cargo_bin;
+///
+/// use std::process::Command;
+/// let mut cmd = Command::new(cargo_bin!())
52
+/// .unwrap();
53
+/// let output = cmd.unwrap();
54
/// ```
55
#[macro_export]
56
#[doc(hidden)]
0 commit comments