#cli #test #assert #command #duct

dev bin+lib trycmd

Snapshot testing for a herd of CLI tests

33 releases (12 breaking)

Uses new Rust 2021

new 0.13.6 Aug 15, 2022
0.13.4 May 2, 2022
0.13.3 Mar 21, 2022
0.8.3 Dec 16, 2021
0.8.2 Nov 30, 2021

#223 in Testing

Download history 1030/week @ 2022-04-25 1434/week @ 2022-05-02 777/week @ 2022-05-09 1276/week @ 2022-05-16 857/week @ 2022-05-23 1440/week @ 2022-05-30 693/week @ 2022-06-06 1040/week @ 2022-06-13 985/week @ 2022-06-20 1367/week @ 2022-06-27 959/week @ 2022-07-04 1008/week @ 2022-07-11 1067/week @ 2022-07-18 1150/week @ 2022-07-25 1610/week @ 2022-08-01 1211/week @ 2022-08-08

5,092 downloads per month
Used in fewer than 14 crates

MIT/Apache

235KB
5.5K SLoC

trycmd

Treat your tests like cattle, instead of pets

Documentation License Crates Status

trycmd is a test harness that will enumerate test case files and run them to verify the results, taking inspiration from trybuild and cram.

Example

Here's a trivial example:

#[test]
fn cli_tests() {
    trycmd::TestCases::new()
        .case("tests/cmd/*.trycmd");
}

See the docs for more.

Users

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~3.5–10MB
~181K SLoC