testcall

Crates.iotestcall
lib.rstestcall
version1.3.0
sourcesrc
created_at2021-06-25 15:10:56.53109
updated_at2022-03-29 18:12:53.322103
descriptioncompaninon crate to bintest, implements test facilities
homepage
repositoryhttps://github.com/cehteh/testcall.git
max_upload_size
id414859
size21,619
(cehteh)

documentation

README

Companinon crate to ‘BinTest’, implements test facilities

Description

A TestCall uses BinTest and std::process::Command to wrap process execution in a way that is ergonomic to use for (repeated) testing. Few more test facilities are provided and will grow in future.

Example

#[test]
fn myprogram_test() {
    let executables = BinTest::new();
    let mut myprogram = TestCall::new(&executables, "myprogram");

    myprogram
        .call(["--help"])
        .assert_success();
}

Future Plans

New features will be added as needed, PR’s are welcome. This is work in progress.

Commit count: 36

cargo fmt