pub enum TestEventKind<'a> {
Show 18 variants
RunStarted {
test_list: &'a TestList<'a>,
run_id: ReportUuid,
profile_name: String,
cli_args: Vec<String>,
},
SetupScriptStarted {
index: usize,
total: usize,
script_id: ScriptId,
command: &'a str,
args: &'a [String],
no_capture: bool,
},
SetupScriptSlow {
script_id: ScriptId,
command: &'a str,
args: &'a [String],
elapsed: Duration,
will_terminate: bool,
},
SetupScriptFinished {
index: usize,
total: usize,
script_id: ScriptId,
command: &'a str,
args: &'a [String],
junit_store_success_output: bool,
junit_store_failure_output: bool,
no_capture: bool,
run_status: SetupScriptExecuteStatus,
},
TestStarted {
test_instance: TestInstance<'a>,
current_stats: RunStats,
running: usize,
cancel_state: Option<CancelReason>,
},
TestSlow {
test_instance: TestInstance<'a>,
retry_data: RetryData,
elapsed: Duration,
will_terminate: bool,
},
TestAttemptFailedWillRetry {
test_instance: TestInstance<'a>,
run_status: ExecuteStatus,
delay_before_next_attempt: Duration,
failure_output: TestOutputDisplay,
},
TestRetryStarted {
test_instance: TestInstance<'a>,
retry_data: RetryData,
},
TestFinished {
test_instance: TestInstance<'a>,
success_output: TestOutputDisplay,
failure_output: TestOutputDisplay,
junit_store_success_output: bool,
junit_store_failure_output: bool,
run_statuses: ExecutionStatuses,
current_stats: RunStats,
running: usize,
cancel_state: Option<CancelReason>,
},
TestSkipped {
test_instance: TestInstance<'a>,
reason: MismatchReason,
},
InfoStarted {
total: usize,
run_stats: RunStats,
},
InfoResponse {
index: usize,
total: usize,
response: InfoResponse<'a>,
},
InfoFinished {
missing: usize,
},
RunBeginCancel {
setup_scripts_running: usize,
running: usize,
reason: CancelReason,
},
RunBeginKill {
setup_scripts_running: usize,
running: usize,
reason: CancelReason,
},
RunPaused {
setup_scripts_running: usize,
running: usize,
},
RunContinued {
setup_scripts_running: usize,
running: usize,
},
RunFinished {
run_id: ReportUuid,
start_time: DateTime<FixedOffset>,
elapsed: Duration,
run_stats: RunStats,
},
}
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: ReportUuid
The UUID for this run.
SetupScriptStarted
A setup script started.
Fields
script_id: ScriptId
The script ID.
SetupScriptSlow
A setup script was slow.
Fields
script_id: ScriptId
The script ID.
SetupScriptFinished
A setup script completed execution.
Fields
script_id: ScriptId
The script ID.
junit_store_success_output: bool
Whether the JUnit report should store success output for this script.
junit_store_failure_output: bool
Whether the JUnit report should store failure output for this script.
run_status: SetupScriptExecuteStatus
The execution status of the setup script.
TestStarted
A test started running.
Fields
test_instance: TestInstance<'a>
The test instance that was started.
cancel_state: Option<CancelReason>
The cancel status of the run. This is None if the run is still ongoing.
TestSlow
A test was slower than a configured soft timeout.
Fields
test_instance: TestInstance<'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
test_instance: TestInstance<'a>
The test instance that is being retried.
run_status: ExecuteStatus
The status of this attempt to run the test. Will never be success.
failure_output: TestOutputDisplay
Whether failure outputs are printed out.
TestRetryStarted
A retry has started.
Fields
test_instance: TestInstance<'a>
The test instance that is being retried.
TestFinished
A test finished running.
Fields
test_instance: TestInstance<'a>
The test instance that finished running.
success_output: TestOutputDisplay
Test setting for success output.
failure_output: TestOutputDisplay
Test setting for failure output.
junit_store_success_output: bool
Whether the JUnit report should store success output for this test.
junit_store_failure_output: bool
Whether the JUnit report should store failure output for this test.
run_statuses: ExecutionStatuses
Information about all the runs for this test.
cancel_state: Option<CancelReason>
The cancel status of the run. This is None if the run is still ongoing.
TestSkipped
A test was skipped.
Fields
test_instance: TestInstance<'a>
The test instance that was skipped.
reason: MismatchReason
The 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.
RunBeginCancel
A cancellation notice was received.
Fields
reason: CancelReason
The reason this run was cancelled.
RunBeginKill
A forcible kill was requested due to receiving a signal.
Fields
reason: CancelReason
The reason this run was killed.
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
RunFinished
The test run finished.
Fields
run_id: ReportUuid
The unique ID for this run.
start_time: DateTime<FixedOffset>
The time at which the run was started.
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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