insta-cmd 0.6.0

A command line extension to the insta testing library for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
fn main() {
    println!("Hello Example!");
}

#[test]
fn test_cli() {
    use insta_cmd::{assert_cmd_snapshot, get_cargo_example, Command};
    assert_cmd_snapshot!(Command::new(get_cargo_example("hello")), @r###"
    success: true
    exit_code: 0
    ----- stdout -----
    Hello Example!

    ----- stderr -----
    "###);
}