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§
Source§impl Clone for RunOptions
impl Clone for RunOptions
Source§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 moreSource§impl Debug for RunOptions
impl Debug for RunOptions
Source§impl<D: ResourceDialect> Decode<RunOptions, D> for RunOptions
impl<D: ResourceDialect> Decode<RunOptions, D> for RunOptions
Source§impl Default for RunOptions
impl Default for RunOptions
Source§fn default() -> RunOptions
fn default() -> RunOptions
Source§impl<D: ResourceDialect> Encode<RunOptions, D> for &RunOptions
impl<D: ResourceDialect> Encode<RunOptions, D> for &RunOptions
Source§impl PartialEq for RunOptions
impl PartialEq for RunOptions
Source§impl TypeMarker for RunOptions
impl TypeMarker for RunOptions
Source§type Owned = RunOptions
type Owned = RunOptions
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.Source§impl ValueTypeMarker for RunOptions
impl ValueTypeMarker for RunOptions
Source§type Borrowed<'a> = &'a RunOptions
type Borrowed<'a> = &'a RunOptions
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read moreimpl Persistable for RunOptions
impl StructuralPartialEq for RunOptions
Auto Trait Implementations§
impl Freeze for RunOptions
impl RefUnwindSafe for RunOptions
impl Send for RunOptions
impl Sync for RunOptions
impl Unpin for RunOptions
impl UnwindSafe for RunOptions
Blanket Implementations§
§impl<T> Body for Twhere
T: Persistable,
impl<T> Body for Twhere
T: Persistable,
§type MarkerAtTopLevel = T
type MarkerAtTopLevel = T
§type MarkerInResultUnion = T
type MarkerInResultUnion = T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)