pub enum TestEventKind<'a> {
Show 21 variants
RunStarted {
test_list: &'a TestList<'a>,
run_id: ReportUuid,
profile_name: String,
cli_args: Vec<String>,
stress_condition: Option<StressCondition>,
},
StressSubRunStarted {
progress: StressProgress,
},
SetupScriptStarted {
stress_index: Option<StressIndex>,
index: usize,
total: usize,
script_id: ScriptId,
program: String,
args: Vec<String>,
no_capture: bool,
},
SetupScriptSlow {
stress_index: Option<StressIndex>,
script_id: ScriptId,
program: String,
args: Vec<String>,
elapsed: Duration,
will_terminate: bool,
},
SetupScriptFinished {
stress_index: Option<StressIndex>,
index: usize,
total: usize,
script_id: ScriptId,
program: String,
args: Vec<String>,
junit_store_success_output: bool,
junit_store_failure_output: bool,
no_capture: bool,
run_status: SetupScriptExecuteStatus<ChildSingleOutput>,
},
TestStarted {
stress_index: Option<StressIndex>,
test_instance: TestInstanceId<'a>,
current_stats: RunStats,
running: usize,
command_line: Vec<String>,
},
TestSlow {
stress_index: Option<StressIndex>,
test_instance: TestInstanceId<'a>,
retry_data: RetryData,
elapsed: Duration,
will_terminate: bool,
},
TestAttemptFailedWillRetry {
stress_index: Option<StressIndex>,
test_instance: TestInstanceId<'a>,
run_status: ExecuteStatus<ChildSingleOutput>,
delay_before_next_attempt: Duration,
failure_output: TestOutputDisplay,
running: usize,
},
TestRetryStarted {
stress_index: Option<StressIndex>,
test_instance: TestInstanceId<'a>,
retry_data: RetryData,
running: usize,
command_line: Vec<String>,
},
TestFinished {
stress_index: Option<StressIndex>,
test_instance: TestInstanceId<'a>,
success_output: TestOutputDisplay,
failure_output: TestOutputDisplay,
junit_store_success_output: bool,
junit_store_failure_output: bool,
run_statuses: ExecutionStatuses<ChildSingleOutput>,
current_stats: RunStats,
running: usize,
},
TestSkipped {
stress_index: Option<StressIndex>,
test_instance: TestInstanceId<'a>,
reason: MismatchReason,
},
InfoStarted {
total: usize,
run_stats: RunStats,
},
InfoResponse {
index: usize,
total: usize,
response: InfoResponse<'a>,
},
InfoFinished {
missing: usize,
},
InputEnter {
current_stats: RunStats,
running: usize,
},
RunBeginCancel {
setup_scripts_running: usize,
current_stats: RunStats,
running: usize,
},
RunBeginKill {
setup_scripts_running: usize,
current_stats: RunStats,
running: usize,
},
RunPaused {
setup_scripts_running: usize,
running: usize,
},
RunContinued {
setup_scripts_running: usize,
running: usize,
},
StressSubRunFinished {
progress: StressProgress,
sub_elapsed: Duration,
sub_stats: RunStats,
},
RunFinished {
run_id: ReportUuid,
start_time: DateTime<FixedOffset>,
elapsed: Duration,
run_stats: RunFinishedStats,
outstanding_not_seen: Option<TestsNotSeen>,
},
}Expand description
The kind of test event this is.
Forms part of TestEvent.
Variants§
RunStarted
The test run started.
Fields
test_list: &'a TestList<'a>The list of tests that will be run.
The methods on the test list indicate the number of tests that will be run.
run_id: ReportUuidThe UUID for this run.
stress_condition: Option<StressCondition>The stress condition for this run, if any.
StressSubRunStarted
When running stress tests serially, a sub-run started.
Fields
progress: StressProgressThe amount of progress completed so far.
SetupScriptStarted
A setup script started.
Fields
stress_index: Option<StressIndex>If a stress test is being run, the stress index, starting from 0.
SetupScriptSlow
A setup script was slow.
Fields
stress_index: Option<StressIndex>If a stress test is being run, the stress index, starting from 0.
SetupScriptFinished
A setup script completed execution.
Fields
stress_index: Option<StressIndex>If a stress test is being run, the stress index, starting from 0.
junit_store_success_output: boolWhether the JUnit report should store success output for this script.
junit_store_failure_output: boolWhether the JUnit report should store failure output for this script.
run_status: SetupScriptExecuteStatus<ChildSingleOutput>The execution status of the setup script.
TestStarted
A test started running.
Fields
stress_index: Option<StressIndex>If a stress test is being run, the stress index, starting from 0.
test_instance: TestInstanceId<'a>The test instance that was started.
TestSlow
A test was slower than a configured soft timeout.
Fields
stress_index: Option<StressIndex>If a stress test is being run, the stress index, starting from 0.
test_instance: TestInstanceId<'a>The test instance that was slow.
TestAttemptFailedWillRetry
A test attempt failed and will be retried in the future.
This event does not occur on the final run of a failing test.
Fields
stress_index: Option<StressIndex>If a stress test is being run, the stress index, starting from 0.
test_instance: TestInstanceId<'a>The test instance that is being retried.
run_status: ExecuteStatus<ChildSingleOutput>The status of this attempt to run the test. Will never be success.
failure_output: TestOutputDisplayWhether failure outputs are printed out.
TestRetryStarted
A retry has started.
Fields
stress_index: Option<StressIndex>If a stress test is being run, the stress index, starting from 0.
test_instance: TestInstanceId<'a>The test instance that is being retried.
TestFinished
A test finished running.
Fields
stress_index: Option<StressIndex>If a stress test is being run, the stress index, starting from 0.
test_instance: TestInstanceId<'a>The test instance that finished running.
success_output: TestOutputDisplayTest setting for success output.
failure_output: TestOutputDisplayTest setting for failure output.
junit_store_success_output: boolWhether the JUnit report should store success output for this test.
junit_store_failure_output: boolWhether the JUnit report should store failure output for this test.
run_statuses: ExecutionStatuses<ChildSingleOutput>Information about all the runs for this test.
TestSkipped
A test was skipped.
Fields
stress_index: Option<StressIndex>If a stress test is being run, the stress index, starting from 0.
test_instance: TestInstanceId<'a>The test instance that was skipped.
reason: MismatchReasonThe reason this test was skipped.
InfoStarted
An information request was received.
Fields
InfoResponse
Information about a script or test was received.
Fields
response: InfoResponse<'a>The response itself.
InfoFinished
An information request was completed.
InputEnter
Enter was pressed. Either a newline or a progress bar snapshot needs
to be printed.
Fields
RunBeginCancel
A cancellation notice was received.
Fields
RunBeginKill
A forcible kill was requested due to receiving a signal.
Fields
RunPaused
A SIGTSTP event was received and the run was paused.
Fields
RunContinued
A SIGCONT event was received and the run is being continued.
Fields
StressSubRunFinished
When running stress tests serially, a sub-run finished.
Fields
progress: StressProgressThe amount of progress completed so far.
RunFinished
The test run finished.
Fields
run_id: ReportUuidThe unique ID for this run.
start_time: DateTime<FixedOffset>The time at which the run was started.
run_stats: RunFinishedStatsStatistics for the run, or overall statistics for stress tests.
outstanding_not_seen: Option<TestsNotSeen>Tests that were expected to run but were not seen during this run.
This is only set for reruns when some tests from the outstanding set did not produce any events.
Trait Implementations§
Source§impl<'a> Clone for TestEventKind<'a>
impl<'a> Clone for TestEventKind<'a>
Source§fn clone(&self) -> TestEventKind<'a>
fn clone(&self) -> TestEventKind<'a>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl<'a> !Freeze for TestEventKind<'a>
impl<'a> RefUnwindSafe for TestEventKind<'a>
impl<'a> Send for TestEventKind<'a>
impl<'a> Sync for TestEventKind<'a>
impl<'a> Unpin for TestEventKind<'a>
impl<'a> UnwindSafe for TestEventKind<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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> ⓘ
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> ⓘ
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§impl<D> OwoColorize for D
impl<D> OwoColorize for D
§fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
§fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
§fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>
fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>
§fn default_color(&self) -> FgColorDisplay<'_, Default, Self>
fn default_color(&self) -> FgColorDisplay<'_, Default, Self>
§fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>
fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>
§fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>
fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>
§fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>
fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>
§fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>
fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>
§fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>
fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>
§fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>
fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>
§fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>
fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>
§fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>
fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>
§fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>
fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>
§fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>
fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>
§fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>
fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>
§fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
§fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
§fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
§fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
§fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>
fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>
§fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>
fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>
§fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>
fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>
§fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>
fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>
§fn blink_fast(&self) -> BlinkFastDisplay<'_, Self>
fn blink_fast(&self) -> BlinkFastDisplay<'_, Self>
§fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>
fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>
§fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
OwoColorize::fg] or
a color-specific method, such as [OwoColorize::green], Read more§fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
OwoColorize::bg] or
a color-specific method, such as [OwoColorize::on_yellow], Read more