Skip to main content

clitest

Macro clitest 

Source
macro_rules! clitest {
    ($name:ident, $script:expr) => { ... };
}
Expand description

Generate #[test] functions from inline clitest scripts.

The #!/usr/bin/env clitest --v0 header is automatically prepended.

use clitest_lib::clitest;

clitest!(my_test, r#"
$ echo hello
! hello
"#);