Enum nextest_runner::reporter::TestEventKind
source · pub enum TestEventKind<'a> {
Show 14 variants
RunStarted {
test_list: &'a TestList<'a>,
run_id: Uuid,
},
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],
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,
},
RunBeginCancel {
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: Uuid,
start_time: SystemTime,
elapsed: Duration,
run_stats: RunStats,
},
}Expand description
The kind of test event this is.
Forms part of TestEvent.
Variants§
RunStarted
Fields
The test run started.
SetupScriptStarted
Fields
script_id: ScriptIdThe script ID.
A setup script started.
SetupScriptSlow
Fields
script_id: ScriptIdThe script ID.
A setup script was slow.
SetupScriptFinished
Fields
script_id: ScriptIdThe script ID.
run_status: SetupScriptExecuteStatusThe execution status of the setup script.
A setup script completed execution.
TestStarted
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.
A test started running.
TestSlow
Fields
test_instance: TestInstance<'a>The test instance that was slow.
A test was slower than a configured soft timeout.
TestAttemptFailedWillRetry
Fields
test_instance: TestInstance<'a>The test instance that is being retried.
run_status: ExecuteStatusThe status of this attempt to run the test. Will never be success.
failure_output: TestOutputDisplayWhether failure outputs are printed out.
A test attempt failed and will be retried in the future.
This event does not occur on the final run of a failing test.
TestRetryStarted
Fields
test_instance: TestInstance<'a>The test instance that is being retried.
A retry has started.
TestFinished
Fields
test_instance: TestInstance<'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: ExecutionStatusesInformation 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.
A test finished running.
TestSkipped
Fields
test_instance: TestInstance<'a>The test instance that was skipped.
reason: MismatchReasonThe reason this test was skipped.
A test was skipped.
RunBeginCancel
Fields
reason: CancelReasonThe reason this run was canceled.
A cancellation notice was received.
RunPaused
Fields
A SIGTSTP event was received and the run was paused.
RunContinued
Fields
A SIGCONT event was received and the run is being continued.
RunFinished
Fields
start_time: SystemTimeThe time at which the run was started.
The test run finished.
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> 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<D> OwoColorize for D
impl<D> OwoColorize for D
source§fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
source§fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
source§fn black<'a>(&'a self) -> FgColorDisplay<'a, Black, Self>
fn black<'a>(&'a self) -> FgColorDisplay<'a, Black, Self>
source§fn on_black<'a>(&'a self) -> BgColorDisplay<'a, Black, Self>
fn on_black<'a>(&'a self) -> BgColorDisplay<'a, Black, Self>
source§fn red<'a>(&'a self) -> FgColorDisplay<'a, Red, Self>
fn red<'a>(&'a self) -> FgColorDisplay<'a, Red, Self>
source§fn on_red<'a>(&'a self) -> BgColorDisplay<'a, Red, Self>
fn on_red<'a>(&'a self) -> BgColorDisplay<'a, Red, Self>
source§fn green<'a>(&'a self) -> FgColorDisplay<'a, Green, Self>
fn green<'a>(&'a self) -> FgColorDisplay<'a, Green, Self>
source§fn on_green<'a>(&'a self) -> BgColorDisplay<'a, Green, Self>
fn on_green<'a>(&'a self) -> BgColorDisplay<'a, Green, Self>
source§fn yellow<'a>(&'a self) -> FgColorDisplay<'a, Yellow, Self>
fn yellow<'a>(&'a self) -> FgColorDisplay<'a, Yellow, Self>
source§fn on_yellow<'a>(&'a self) -> BgColorDisplay<'a, Yellow, Self>
fn on_yellow<'a>(&'a self) -> BgColorDisplay<'a, Yellow, Self>
source§fn blue<'a>(&'a self) -> FgColorDisplay<'a, Blue, Self>
fn blue<'a>(&'a self) -> FgColorDisplay<'a, Blue, Self>
source§fn on_blue<'a>(&'a self) -> BgColorDisplay<'a, Blue, Self>
fn on_blue<'a>(&'a self) -> BgColorDisplay<'a, Blue, Self>
source§fn magenta<'a>(&'a self) -> FgColorDisplay<'a, Magenta, Self>
fn magenta<'a>(&'a self) -> FgColorDisplay<'a, Magenta, Self>
source§fn on_magenta<'a>(&'a self) -> BgColorDisplay<'a, Magenta, Self>
fn on_magenta<'a>(&'a self) -> BgColorDisplay<'a, Magenta, Self>
source§fn purple<'a>(&'a self) -> FgColorDisplay<'a, Magenta, Self>
fn purple<'a>(&'a self) -> FgColorDisplay<'a, Magenta, Self>
source§fn on_purple<'a>(&'a self) -> BgColorDisplay<'a, Magenta, Self>
fn on_purple<'a>(&'a self) -> BgColorDisplay<'a, Magenta, Self>
source§fn cyan<'a>(&'a self) -> FgColorDisplay<'a, Cyan, Self>
fn cyan<'a>(&'a self) -> FgColorDisplay<'a, Cyan, Self>
source§fn on_cyan<'a>(&'a self) -> BgColorDisplay<'a, Cyan, Self>
fn on_cyan<'a>(&'a self) -> BgColorDisplay<'a, Cyan, Self>
source§fn white<'a>(&'a self) -> FgColorDisplay<'a, White, Self>
fn white<'a>(&'a self) -> FgColorDisplay<'a, White, Self>
source§fn on_white<'a>(&'a self) -> BgColorDisplay<'a, White, Self>
fn on_white<'a>(&'a self) -> BgColorDisplay<'a, White, Self>
source§fn default_color<'a>(&'a self) -> FgColorDisplay<'a, Default, Self>
fn default_color<'a>(&'a self) -> FgColorDisplay<'a, Default, Self>
source§fn on_default_color<'a>(&'a self) -> BgColorDisplay<'a, Default, Self>
fn on_default_color<'a>(&'a self) -> BgColorDisplay<'a, Default, Self>
source§fn bright_black<'a>(&'a self) -> FgColorDisplay<'a, BrightBlack, Self>
fn bright_black<'a>(&'a self) -> FgColorDisplay<'a, BrightBlack, Self>
source§fn on_bright_black<'a>(&'a self) -> BgColorDisplay<'a, BrightBlack, Self>
fn on_bright_black<'a>(&'a self) -> BgColorDisplay<'a, BrightBlack, Self>
source§fn bright_red<'a>(&'a self) -> FgColorDisplay<'a, BrightRed, Self>
fn bright_red<'a>(&'a self) -> FgColorDisplay<'a, BrightRed, Self>
source§fn on_bright_red<'a>(&'a self) -> BgColorDisplay<'a, BrightRed, Self>
fn on_bright_red<'a>(&'a self) -> BgColorDisplay<'a, BrightRed, Self>
source§fn bright_green<'a>(&'a self) -> FgColorDisplay<'a, BrightGreen, Self>
fn bright_green<'a>(&'a self) -> FgColorDisplay<'a, BrightGreen, Self>
source§fn on_bright_green<'a>(&'a self) -> BgColorDisplay<'a, BrightGreen, Self>
fn on_bright_green<'a>(&'a self) -> BgColorDisplay<'a, BrightGreen, Self>
source§fn bright_yellow<'a>(&'a self) -> FgColorDisplay<'a, BrightYellow, Self>
fn bright_yellow<'a>(&'a self) -> FgColorDisplay<'a, BrightYellow, Self>
source§fn on_bright_yellow<'a>(&'a self) -> BgColorDisplay<'a, BrightYellow, Self>
fn on_bright_yellow<'a>(&'a self) -> BgColorDisplay<'a, BrightYellow, Self>
source§fn bright_blue<'a>(&'a self) -> FgColorDisplay<'a, BrightBlue, Self>
fn bright_blue<'a>(&'a self) -> FgColorDisplay<'a, BrightBlue, Self>
source§fn on_bright_blue<'a>(&'a self) -> BgColorDisplay<'a, BrightBlue, Self>
fn on_bright_blue<'a>(&'a self) -> BgColorDisplay<'a, BrightBlue, Self>
source§fn bright_magenta<'a>(&'a self) -> FgColorDisplay<'a, BrightMagenta, Self>
fn bright_magenta<'a>(&'a self) -> FgColorDisplay<'a, BrightMagenta, Self>
source§fn on_bright_magenta<'a>(&'a self) -> BgColorDisplay<'a, BrightMagenta, Self>
fn on_bright_magenta<'a>(&'a self) -> BgColorDisplay<'a, BrightMagenta, Self>
source§fn bright_purple<'a>(&'a self) -> FgColorDisplay<'a, BrightMagenta, Self>
fn bright_purple<'a>(&'a self) -> FgColorDisplay<'a, BrightMagenta, Self>
source§fn on_bright_purple<'a>(&'a self) -> BgColorDisplay<'a, BrightMagenta, Self>
fn on_bright_purple<'a>(&'a self) -> BgColorDisplay<'a, BrightMagenta, Self>
source§fn bright_cyan<'a>(&'a self) -> FgColorDisplay<'a, BrightCyan, Self>
fn bright_cyan<'a>(&'a self) -> FgColorDisplay<'a, BrightCyan, Self>
source§fn on_bright_cyan<'a>(&'a self) -> BgColorDisplay<'a, BrightCyan, Self>
fn on_bright_cyan<'a>(&'a self) -> BgColorDisplay<'a, BrightCyan, Self>
source§fn bright_white<'a>(&'a self) -> FgColorDisplay<'a, BrightWhite, Self>
fn bright_white<'a>(&'a self) -> FgColorDisplay<'a, BrightWhite, Self>
source§fn on_bright_white<'a>(&'a self) -> BgColorDisplay<'a, BrightWhite, Self>
fn on_bright_white<'a>(&'a self) -> BgColorDisplay<'a, BrightWhite, Self>
source§fn bold<'a>(&'a self) -> BoldDisplay<'a, Self>
fn bold<'a>(&'a self) -> BoldDisplay<'a, Self>
source§fn dimmed<'a>(&'a self) -> DimDisplay<'a, Self>
fn dimmed<'a>(&'a self) -> DimDisplay<'a, Self>
source§fn italic<'a>(&'a self) -> ItalicDisplay<'a, Self>
fn italic<'a>(&'a self) -> ItalicDisplay<'a, Self>
source§fn underline<'a>(&'a self) -> UnderlineDisplay<'a, Self>
fn underline<'a>(&'a self) -> UnderlineDisplay<'a, Self>
source§fn blink<'a>(&'a self) -> BlinkDisplay<'a, Self>
fn blink<'a>(&'a self) -> BlinkDisplay<'a, Self>
source§fn blink_fast<'a>(&'a self) -> BlinkFastDisplay<'a, Self>
fn blink_fast<'a>(&'a self) -> BlinkFastDisplay<'a, Self>
source§fn reversed<'a>(&'a self) -> ReversedDisplay<'a, Self>
fn reversed<'a>(&'a self) -> ReversedDisplay<'a, Self>
source§fn strikethrough<'a>(&'a self) -> StrikeThroughDisplay<'a, Self>
fn strikethrough<'a>(&'a self) -> StrikeThroughDisplay<'a, Self>
source§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 moresource§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