sem-tool 0.1.4

A simple Semantic Versioning CLI tool for parsing, filtering, sorting and explaining
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use assert_cmd::Command;

#[test]
fn does_it_exist() {
    // Fail with no input.
    Command::cargo_bin(env!("CARGO_PKG_NAME"))
        .unwrap()
        .assert()
        .failure();

    // Success with --help.
    let mut cmd = Command::cargo_bin(env!("CARGO_PKG_NAME")).unwrap();
    let assert = cmd.arg("--help").assert();
    assert.append_context("basic", "help").success();
}