pub enum RunBuilderRequest {
AddSuite {
test_url: String,
options: RunOptions,
controller: ServerEnd<SuiteControllerMarker>,
control_handle: RunBuilderControlHandle,
},
AddSuiteInRealm {
realm: ClientEnd<RealmMarker>,
offers: Vec<Offer>,
test_collection: String,
test_url: String,
options: RunOptions,
controller: ServerEnd<SuiteControllerMarker>,
control_handle: RunBuilderControlHandle,
},
WithSchedulingOptions {
options: SchedulingOptions,
control_handle: RunBuilderControlHandle,
},
Build {
controller: ServerEnd<RunControllerMarker>,
control_handle: RunBuilderControlHandle,
},
_UnknownMethod {
ordinal: u64,
control_handle: RunBuilderControlHandle,
method_type: MethodType,
},
}
Expand description
This is the entry point of running test suites. A test “run” consists of multiple test “suites” which consists of running multiple “test cases”.
Variants§
AddSuite
Add a suite to this run. A suite is a component that implements
fuchsia.test.Suite
. Implementors of this API will talk to test suites
using “Suite” protocol and return results using controller
. The
controller is also used to control the execution of the test suite.
Fields
options: RunOptions
controller: ServerEnd<SuiteControllerMarker>
control_handle: RunBuilderControlHandle
AddSuiteInRealm
Add a suite to this run which would run in provided ‘realm’. A suite is
a component that implements fuchsia.test.Suite
. Implementors of this
API will talk to test suites using “Suite” protocol and return results
using controller
. The controller is also used to control the execution
of the test suite.
Fields
realm: ClientEnd<RealmMarker>
options: RunOptions
controller: ServerEnd<SuiteControllerMarker>
control_handle: RunBuilderControlHandle
WithSchedulingOptions
Specify scheduling options used for this run.
Build
Build and schedule the run.
This runs all suites added with their respective filters and closes the channel once it is done.
_UnknownMethod
An interaction was received which does not match any known method.
Fields
This variant is marked as non-exhaustive
control_handle: RunBuilderControlHandle
method_type: MethodType
Implementations§
Source§impl RunBuilderRequest
impl RunBuilderRequest
pub fn into_add_suite( self, ) -> Option<(String, RunOptions, ServerEnd<SuiteControllerMarker>, RunBuilderControlHandle)>
pub fn into_add_suite_in_realm( self, ) -> Option<(ClientEnd<RealmMarker>, Vec<Offer>, String, String, RunOptions, ServerEnd<SuiteControllerMarker>, RunBuilderControlHandle)>
pub fn into_with_scheduling_options( self, ) -> Option<(SchedulingOptions, RunBuilderControlHandle)>
pub fn into_build( self, ) -> Option<(ServerEnd<RunControllerMarker>, RunBuilderControlHandle)>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL