exit-with-code 1.0.0

A CLI which returns the exit code of your choice
1
2
3
4
5
6
7
8
9
#[test]
fn exit_success() {
    let mut child = std::process::Command::new(env!("CARGO_BIN_EXE_ewc"))
        .arg("0")
        .spawn()
        .unwrap();

    assert!(child.wait().unwrap().success())
}