pub struct FlakyRun { /* private fields */ }Expand description
Configuration for a flaky-test detection run.
Implementations§
Source§impl FlakyRun
impl FlakyRun
Sourcepub fn new(name: impl Into<String>, version: impl Into<String>) -> Self
pub fn new(name: impl Into<String>, version: impl Into<String>) -> Self
Begin a new flaky-test run. Defaults to 10 iterations.
Sourcepub fn iterations(self, n: u32) -> Self
pub fn iterations(self, n: u32) -> Self
Set how many iterations to run.
Sourcepub fn iteration_count(&self) -> u32
pub fn iteration_count(&self) -> u32
Configured iteration count.
Sourcepub fn execute(&self) -> Result<FlakyResult, FlakyError>
pub fn execute(&self) -> Result<FlakyResult, FlakyError>
Execute the run.
In 0.9.0 this is a stub; subprocess integration lands in 0.9.1.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FlakyRun
impl RefUnwindSafe for FlakyRun
impl Send for FlakyRun
impl Sync for FlakyRun
impl Unpin for FlakyRun
impl UnsafeUnpin for FlakyRun
impl UnwindSafe for FlakyRun
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more