[−][src]Struct abscissa_core::testing::CmdRunner
Run a command via cargo run
Methods
impl CmdRunner
[src]
pub fn target_bin<S>(bin: S) -> Self where
S: Into<OsString>,
[src]
S: Into<OsString>,
Run a target binary via cargo by passing --bin
to cargo run
.
Use CmdRunner::default()
if you only have one target binary in your
Cargo workspace.
pub fn new<S>(program: S) -> Self where
S: Into<OsString>,
[src]
S: Into<OsString>,
Create a new command runner which runs an arbitrary program at the given path.
pub fn arg<S>(&mut self, arg: S) -> &mut Self where
S: Into<OsString>,
[src]
S: Into<OsString>,
Append an argument to the set of arguments to run
pub fn args<I, S>(&mut self, args: I) -> &mut Self where
I: IntoIterator<Item = S>,
S: Into<OsString>,
[src]
I: IntoIterator<Item = S>,
S: Into<OsString>,
Append multiple arguments to the set of arguments to run
pub fn capture_stdout(&mut self) -> &mut Self
[src]
Enable capturing of standard output
pub fn capture_stderr(&mut self) -> &mut Self
[src]
Enable capturing of standard error
pub fn config<C>(&mut self, config: &C) -> &mut Self where
C: Serialize,
[src]
C: Serialize,
Add the given configuration file
pub fn exclusive(&mut self) -> &mut Self
[src]
Serialize invocations of this command using a mutex
pub fn quiet(&mut self) -> &mut Self
[src]
Disable printing a + run: ...
logline when running command
pub fn timeout(&mut self, duration: Duration) -> &mut Self
[src]
Set the timeout after which the command should complete.
By default CargoRunner
timeout will be used (30 minutes).
ⓘImportant traits for Process<'cmd>pub fn run(&self) -> Process
[src]
Run the given subcommand
pub fn status(&self) -> ExitStatus
[src]
Get the exit status for the given subcommand
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for CmdRunner
impl Send for CmdRunner
impl Sync for CmdRunner
impl Unpin for CmdRunner
impl UnwindSafe for CmdRunner
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> AsAny for T where
T: Any,
[src]
T: Any,
fn as_any(&Self) -> &(dyn Any + 'static)
[src]
fn as_mut_any(&mut Self) -> &mut (dyn Any + 'static)
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Erased for T
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,