Struct RunOptions
pub struct RunOptions {
pub run_disabled_tests: Option<bool>,
pub parallel: Option<u16>,
pub arguments: Option<Vec<String>>,
pub timeout: Option<i64>,
pub case_filters_to_run: Option<Vec<String>>,
pub log_iterator: Option<LogsIteratorOption>,
pub log_interest: Option<Vec<LogInterestSelector>>,
pub break_on_failure: Option<bool>,
pub no_exception_channel: Option<bool>,
/* private fields */
}
Expand description
Optional additional instructions for executing a test suite.
Fields§
§run_disabled_tests: Option<bool>
If set to true, test cases that have been disabled by the test author will nonetheless be executed. Defaults to false.
parallel: Option<u16>
Defines maximum number of test cases to run simultaneously.
If unspecified, the default behavior is chosen by the Suite
implementation.
arguments: Option<Vec<String>>
Optional arguments to pass to the test. Test runners will decide how to pass these arguments to tests.
timeout: Option<i64>
Timeout in seconds for the entire suite.
case_filters_to_run: Option<Vec<String>>
glob case filter. This filter will match based on glob pattern [https://en.wikipedia.org/wiki/Glob_(programming)]. Only test cases matching at least one pattern will be run. In addition, negative filters may be specified by prepending ‘-’. When negative filters are specified, test cases matching the negative filter are excluded. The behavior of combinations of these filters is as follows:
- When no filters are specified, all test cases are run.
- When only positive filters are specified, test cases that match at least one filter are run.
- When only negative filters are specified, test cases that match none of the filters are run.
- When both positive and negative filters are specified, test cases that match at least one positive filter, but do not match any negative filters, are run.
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
.
log_iterator: Option<LogsIteratorOption>
Defines what kind of log iterator the client supports. Default value is Batch iterator.
log_interest: Option<Vec<LogInterestSelector>>
Configures the minimum severity for the components under test.
break_on_failure: Option<bool>
If true, the test runner should halt (if supported) the test suite when a failure is encountered such that a debugger may attach to the process in the future. Test runners may safely ignore this if they do not support stopping running test suites.
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§
§impl Clone for RunOptions
impl Clone for RunOptions
§fn clone(&self) -> RunOptions
fn clone(&self) -> RunOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more§impl Debug for RunOptions
impl Debug for RunOptions
§impl<D> Decode<RunOptions, D> for RunOptionswhere
D: ResourceDialect,
impl<D> Decode<RunOptions, D> for RunOptionswhere
D: ResourceDialect,
§fn new_empty() -> RunOptions
fn new_empty() -> RunOptions
Self
. The specific value does not matter,
since it will be overwritten by decode
.§impl Default for RunOptions
impl Default for RunOptions
§fn default() -> RunOptions
fn default() -> RunOptions
§impl<D> Encode<RunOptions, D> for &RunOptionswhere
D: ResourceDialect,
impl<D> Encode<RunOptions, D> for &RunOptionswhere
D: ResourceDialect,
§impl PartialEq for RunOptions
impl PartialEq for RunOptions
§impl TypeMarker for RunOptions
impl TypeMarker for RunOptions
§type Owned = RunOptions
type Owned = RunOptions
§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
§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.§impl ValueTypeMarker for RunOptions
impl ValueTypeMarker for RunOptions
§type Borrowed<'a> = &'a RunOptions
type Borrowed<'a> = &'a RunOptions
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read more§fn borrow(
value: &<RunOptions as TypeMarker>::Owned,
) -> <RunOptions as ValueTypeMarker>::Borrowed<'_>
fn borrow( value: &<RunOptions as TypeMarker>::Owned, ) -> <RunOptions as ValueTypeMarker>::Borrowed<'_>
&Self::Owned
to Self::Borrowed
.