pub trait OutputAssertExt {
pub fn assert(self) -> Assert;
}
Assert the state of an Output
.
use assert_cmd::prelude::*;
use std::process::Command;
let mut cmd = Command::cargo_bin("bin_fixture")
.unwrap();
cmd.assert()
.success();
Wrap with an interface for that provides assertions on the Output
.
use assert_cmd::prelude::*;
use std::process::Command;
let mut cmd = Command::cargo_bin("bin_fixture")
.unwrap();
cmd.assert()
.success();
Loading content...Loading content...impl<'c> OutputAssertExt for &'c mut assert_cmd::cmd::Command
[src]
Loading content...