pub struct TestBuilder { /* private fields */ }Expand description
Builds and runs test suite(s).
Implementations§
Source§impl TestBuilder
impl TestBuilder
Sourcepub fn new(proxy: RunBuilderProxy) -> Self
pub fn new(proxy: RunBuilderProxy) -> Self
Create new instance
Sourcepub fn filter_debug_data(self) -> Self
pub fn filter_debug_data(self) -> Self
Filter out debug data. On coverage builders, tests executed under test_manager produce coverage profile. This option is useful for ignoring these and ensuring the caller observes the same events on all builders.
pub fn take_proxy(self) -> RunBuilderProxy
pub fn set_scheduling_options( &self, accumulate_debug_data: bool, ) -> Result<(), Error>
Sourcepub async fn add_suite(
&self,
test_url: &str,
run_options: RunOptions,
) -> Result<SuiteRunInstance, Error>
pub async fn add_suite( &self, test_url: &str, run_options: RunOptions, ) -> Result<SuiteRunInstance, Error>
Add suite to run.
Sourcepub async fn add_suite_in_realm(
&self,
realm: ClientEnd<RealmMarker>,
offers: &[Offer],
test_collection: &str,
test_url: &str,
run_options: RunOptions,
) -> Result<SuiteRunInstance, Error>
pub async fn add_suite_in_realm( &self, realm: ClientEnd<RealmMarker>, offers: &[Offer], test_collection: &str, test_url: &str, run_options: RunOptions, ) -> Result<SuiteRunInstance, Error>
Add suite to run in a realm.
Sourcepub async fn run(self) -> Result<Vec<TestRunEvent>, Error>
pub async fn run(self) -> Result<Vec<TestRunEvent>, Error>
Runs all tests to completion and collects events alongside uncompressed debug_data. We will remove this function and merge it with run_with_option function once we remove open to get uncompressed debug_data.
Sourcepub async fn run_with_option(
self,
get_compressed_debug_data: bool,
) -> Result<Vec<TestRunEvent>, Error>
pub async fn run_with_option( self, get_compressed_debug_data: bool, ) -> Result<Vec<TestRunEvent>, Error>
Runs all tests to completion and collects events alongside compressed debug_data. We will remove this function and merge it with run once we remove open to get uncompressed debug_data.
Auto Trait Implementations§
impl Freeze for TestBuilder
impl !RefUnwindSafe for TestBuilder
impl Send for TestBuilder
impl Sync for TestBuilder
impl Unpin for TestBuilder
impl UnsafeUnpin for TestBuilder
impl !UnwindSafe for TestBuilder
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, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to [Self]§impl<T> IntoAny for T
impl<T> IntoAny for T
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