[−][src]Struct abscissa_core::testing::prelude::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
impl Clone for CmdRunner
[src]
fn clone(&self) -> CmdRunner
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Default for CmdRunner
[src]
impl Debug for CmdRunner
[src]
Auto Trait Implementations
impl Sync for CmdRunner
impl Send for CmdRunner
impl Unpin for CmdRunner
impl RefUnwindSafe for CmdRunner
impl UnwindSafe for CmdRunner
Blanket Implementations
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,