pub enum TestEvent {
Show 15 variants
RunStarted {
adapter: String,
framework: String,
project_dir: PathBuf,
},
SuiteStarted {
name: String,
},
TestStarted {
suite: String,
name: String,
},
TestFinished {
suite: String,
test: TestCase,
},
SuiteFinished {
suite: TestSuite,
},
RunFinished {
result: TestRunResult,
},
RawOutput {
stream: Stream,
line: String,
},
WatchRerun {
changed_files: Vec<PathBuf>,
},
RetryStarted {
test_name: String,
attempt: u32,
max_attempts: u32,
},
RetryFinished {
test_name: String,
attempt: u32,
passed: bool,
},
FilterApplied {
pattern: String,
matched_count: usize,
},
ParallelAdapterStarted {
adapter: String,
},
ParallelAdapterFinished {
adapter: String,
result: TestRunResult,
},
Warning {
message: String,
},
Progress {
message: String,
current: usize,
total: usize,
},
}Expand description
Events emitted during test execution, enabling decoupled output rendering.
Variants§
RunStarted
Test run is starting.
SuiteStarted
A test suite has started executing.
TestStarted
A single test has started.
TestFinished
A single test has completed.
SuiteFinished
An entire suite has completed.
RunFinished
The entire test run has completed.
Fields
§
result: TestRunResultRawOutput
Raw output line from the test process.
WatchRerun
Watch mode: files changed, triggering re-run.
RetryStarted
Retry: a failed test is being retried.
RetryFinished
Retry: attempt completed.
FilterApplied
Filter applied to test run.
ParallelAdapterStarted
Parallel: an adapter run started.
ParallelAdapterFinished
Parallel: an adapter run finished.
Warning
A warning message (non-fatal).
Progress
A progress tick (for long-running operations).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TestEvent
impl RefUnwindSafe for TestEvent
impl Send for TestEvent
impl Sync for TestEvent
impl Unpin for TestEvent
impl UnsafeUnpin for TestEvent
impl UnwindSafe for TestEvent
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
Mutably borrows from an owned value. Read more