Skip to main content

TestExecutor

Trait TestExecutor 

Source
pub trait TestExecutor:
    Send
    + Sync
    + Debug {
    // Required methods
    fn run_test<'life0, 'life1, 'async_trait>(
        &'life0 self,
        node_id: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Result<TestResult>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn run_tests<'life0, 'life1, 'async_trait>(
        &'life0 self,
        node_ids: &'life1 [String],
    ) -> Pin<Box<dyn Future<Output = Vec<TestResult>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn configure(&mut self, config: ExecutorConfig);
    fn execution_mode(&self) -> &'static str;
    fn kill_all(&self);
}
Expand description

Trait for test executors providing a unified interface for running tests.

Required Methods§

Source

fn run_test<'life0, 'life1, 'async_trait>( &'life0 self, node_id: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<TestResult>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Run a single test and return the result.

Source

fn run_tests<'life0, 'life1, 'async_trait>( &'life0 self, node_ids: &'life1 [String], ) -> Pin<Box<dyn Future<Output = Vec<TestResult>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Run multiple tests and return all results.

Source

fn configure(&mut self, config: ExecutorConfig)

Configure the executor with the given settings.

Source

fn execution_mode(&self) -> &'static str

Get the execution mode name for logging.

Source

fn kill_all(&self)

Kill all running processes.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§