pub struct Runner { /* private fields */ }Expand description
The main test runner engine.
Implementations§
Source§impl Runner
impl Runner
pub fn new(config: RunnerConfig) -> Self
pub fn with_event_bus(self, event_bus: EventBus) -> Self
pub fn event_bus(&self) -> &EventBus
pub fn event_bus_mut(&mut self) -> &mut EventBus
pub fn config(&self) -> &RunnerConfig
pub fn engine(&self) -> &DetectionEngine
Sourcepub fn run(&mut self) -> Result<(TestRunResult, ExecutionOutput)>
pub fn run(&mut self) -> Result<(TestRunResult, ExecutionOutput)>
Run tests, auto-detecting the adapter or using the configured override.
Sourcepub fn run_with_adapter(
&mut self,
adapter_index: usize,
) -> Result<(TestRunResult, ExecutionOutput)>
pub fn run_with_adapter( &mut self, adapter_index: usize, ) -> Result<(TestRunResult, ExecutionOutput)>
Run tests using a specific adapter by index.
Auto Trait Implementations§
impl Freeze for Runner
impl !RefUnwindSafe for Runner
impl !Send for Runner
impl !Sync for Runner
impl Unpin for Runner
impl UnsafeUnpin for Runner
impl !UnwindSafe for Runner
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