pub struct RunSuiteOptions {
pub realm_options: Option<RealmOptions>,
pub run_disabled_tests: Option<bool>,
pub max_concurrent_test_case_runs: Option<u16>,
pub arguments: Option<Vec<String>>,
pub timeout: Option<i64>,
pub test_case_filters: Option<Vec<String>>,
pub logs_iterator_type: Option<LogsIteratorType>,
pub log_interest: Option<Vec<LogInterestSelector>>,
pub accumulate_debug_data: Option<bool>,
pub no_exception_channel: Option<bool>,
/* private fields */
}
Expand description
Options specifying how a test suite should be run.
Fields§
§realm_options: Option<RealmOptions>
Specifies the realm in which to run the test suite. If this field is not supplied, the test will run in a hermetic realm inside the test manager. This option is used by clients that require non-hermetic realms or test realms with custom runners.
run_disabled_tests: Option<bool>
If set to true, test cases that have been disabled by the test author will nonetheless be executed. This value is false by default.
max_concurrent_test_case_runs: Option<u16>
Defines the maximum number of test cases to run concurrently. If unspecified, the test suite component decides this value.
arguments: Option<Vec<String>>
Command-line arguments to pass to the test. Test runners decide how to pass these arguments to tests. This value is an empty vector (no arguments) by default.
timeout: Option<i64>
Timeout for the entire suite run. If unspecified, there is no timeout, and the suite run may hang indefinitely.
test_case_filters: Option<Vec<String>>
Test case filters as glob patterns [https://en.wikipedia.org/wiki/Glob_(programming)]. Negative filters may be specified by prepending ‘-’. This value is an empty vector (no filters) by default.
A given test case is run if both of the following are true:
- No positive filters are specfied, or the test case matches one of the positive filters.
- The test case does not match any specified negative filter.
For example, given that a suite has the test cases Foo.Test1
, Foo.Test2
, Bar.Test1
,
and Bar.Test2
:
- The filters
["Foo.*"]
will executeFoo.Test1
andFoo.Test2
. - The filters
["-Foo.*"]
will executeBar.Test1
andBar.Test2
. - The filters
["Foo.*", "-*.Test1"]
will executeFoo.Test2
.
logs_iterator_type: Option<LogsIteratorType>
Specifies what kind of iterator the client will use for retrieving logs. This value is
BATCH
by default.
log_interest: Option<Vec<LogInterestSelector>>
Configures the minimum severity to apply when filtering logs from the test suite component.
accumulate_debug_data: Option<bool>
If set to true, debug data collected for this run will be accumulated in test manager’s tmp folder with debug data collected in previous runs with this flag set true. Defaults to false.
This option is used when many tests are run in a batch, and delivering the accumulated data is more performant than delivering the debug data one test at a time.
no_exception_channel: Option<bool>
If true, indicates the test creates an exception channel. In this case, the test manager will refrain from creating its own exception channels to avoid conflicts. Default value is false.
Trait Implementations§
Source§impl Debug for RunSuiteOptions
impl Debug for RunSuiteOptions
Source§impl Decode<RunSuiteOptions, DefaultFuchsiaResourceDialect> for RunSuiteOptions
impl Decode<RunSuiteOptions, DefaultFuchsiaResourceDialect> for RunSuiteOptions
Source§impl Default for RunSuiteOptions
impl Default for RunSuiteOptions
Source§fn default() -> RunSuiteOptions
fn default() -> RunSuiteOptions
Source§impl Encode<RunSuiteOptions, DefaultFuchsiaResourceDialect> for &mut RunSuiteOptions
impl Encode<RunSuiteOptions, DefaultFuchsiaResourceDialect> for &mut RunSuiteOptions
Source§impl PartialEq for RunSuiteOptions
impl PartialEq for RunSuiteOptions
Source§impl ResourceTypeMarker for RunSuiteOptions
impl ResourceTypeMarker for RunSuiteOptions
Source§type Borrowed<'a> = &'a mut RunSuiteOptions
type Borrowed<'a> = &'a mut RunSuiteOptions
Encode<Self>
type cheaply obtainable from &mut Self::Owned
. There are three cases: Read moreSource§fn take_or_borrow<'a>(
value: &'a mut <Self as TypeMarker>::Owned,
) -> Self::Borrowed<'a>
fn take_or_borrow<'a>( value: &'a mut <Self as TypeMarker>::Owned, ) -> Self::Borrowed<'a>
&mut Self::Owned
to Self::Borrowed
. For
HandleBased
types this is “take” (it returns an owned handle and
replaces value
with Handle::invalid
), and for all other types it is
“borrow” (just converts from one reference to another).Source§impl TypeMarker for RunSuiteOptions
impl TypeMarker for RunSuiteOptions
Source§type Owned = RunSuiteOptions
type Owned = RunSuiteOptions
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
inline_align
.§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read more§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.