pub trait TestController:
Environment
+ Send
+ Sync {
// Required methods
fn RegisterTestController<'life0, 'async_trait>(
&'life0 self,
ControllerId: String,
Label: String,
) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn RunTests<'life0, 'async_trait>(
&'life0 self,
ControllerId: String,
TestRunRequest: Value,
) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
An abstract service contract for an environment component that can manage test providers and test runs contributed by extensions.
Required Methods§
Sourcefn RegisterTestController<'life0, 'async_trait>(
&'life0 self,
ControllerId: String,
Label: String,
) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn RegisterTestController<'life0, 'async_trait>(
&'life0 self,
ControllerId: String,
Label: String,
) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Registers a new test controller from a sidecar (extension host).
§Parameters
ControllerId: A unique identifier for the test controller.Label: A human-readable label for the test controller.
Sourcefn RunTests<'life0, 'async_trait>(
&'life0 self,
ControllerId: String,
TestRunRequest: Value,
) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn RunTests<'life0, 'async_trait>(
&'life0 self,
ControllerId: String,
TestRunRequest: Value,
) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Runs a set of tests.
§Parameters
ControllerId: The ID of the controller that owns the tests to be run.TestRunRequest: A DTO representing the request, including which specific tests to run (or all if omitted) and whether it’s a debug run.