pub struct EmbeddedExecutor { /* private fields */ }Expand description
Embedded Python executor that runs pytest directly without subprocess.
Implementations§
Source§impl EmbeddedExecutor
impl EmbeddedExecutor
Sourcepub fn new(python_path: Option<PathBuf>) -> Result<Self>
pub fn new(python_path: Option<PathBuf>) -> Result<Self>
Create a new embedded executor with optional python_path for virtualenv support.
Sourcepub fn configure(&mut self, config: EmbeddedExecutorConfig)
pub fn configure(&mut self, config: EmbeddedExecutorConfig)
Configure the executor.
Sourcepub fn run_tests(&self, node_ids: &[String]) -> Result<Vec<TestResult>>
pub fn run_tests(&self, node_ids: &[String]) -> Result<Vec<TestResult>>
Run tests using embedded Python.
Sourcepub fn run_test(&self, node_id: &str) -> Result<TestResult>
pub fn run_test(&self, node_id: &str) -> Result<TestResult>
Run a single test.
Sourcepub fn is_available() -> bool
pub fn is_available() -> bool
Check if embedded Python is available and working.
Trait Implementations§
Source§impl Debug for EmbeddedExecutor
impl Debug for EmbeddedExecutor
Source§impl Default for EmbeddedExecutor
impl Default for EmbeddedExecutor
Source§impl TestExecutor for EmbeddedExecutor
impl TestExecutor for EmbeddedExecutor
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,
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,
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)
fn configure(&mut self, config: ExecutorConfig)
Configure the executor with the given settings.
Source§fn execution_mode(&self) -> &'static str
fn execution_mode(&self) -> &'static str
Get the execution mode name for logging.
Auto Trait Implementations§
impl Freeze for EmbeddedExecutor
impl RefUnwindSafe for EmbeddedExecutor
impl Send for EmbeddedExecutor
impl Sync for EmbeddedExecutor
impl Unpin for EmbeddedExecutor
impl UnsafeUnpin for EmbeddedExecutor
impl UnwindSafe for EmbeddedExecutor
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more