pub enum TestEvent {
RunStarted {
total_tests: u32,
},
TestStarted {
test: String,
},
StepStarted {
test: String,
index: u32,
label: String,
},
StepFinished {
test: String,
index: u32,
label: String,
status: StepStatus,
duration_ms: u64,
message: String,
diagnostics: Option<String>,
screenshot: Option<String>,
},
LlmCallStarted {
test: String,
index: u32,
endpoint: String,
model: String,
purpose: String,
},
LlmCallFinished {
test: String,
index: u32,
endpoint: String,
model: String,
purpose: String,
ok: bool,
duration_ms: u64,
input_tokens: u64,
output_tokens: u64,
cached_input_tokens: u64,
cost: f64,
error: Option<String>,
},
TestFinished {
test: String,
passed: u32,
failed: u32,
skipped: u32,
duration_ms: u64,
cost: f64,
tokens: u64,
input_tokens: u64,
output_tokens: u64,
cached_input_tokens: u64,
models: Vec<String>,
calls: u64,
},
RunFinished {
tests_passed: u32,
tests_failed: u32,
steps_passed: u32,
steps_failed: u32,
steps_skipped: u32,
total_cost: f64,
total_tokens: u64,
total_input_tokens: u64,
total_output_tokens: u64,
total_cached_input_tokens: u64,
models: Vec<String>,
total_calls: u64,
},
Warning {
message: String,
},
}Expand description
One event in the run’s lifecycle.
Serialized as a flat JSON object with a type discriminator, e.g.
{"type":"step_finished","test":"login","status":"passed",...}. The
reporter adds a ts (epoch milliseconds) field on emission.
Variants§
RunStarted
The run is about to execute total_tests tests.
TestStarted
A test started.
StepStarted
A step inside a test started.
Fields
StepFinished
A step finished.
Fields
§
status: StepStatusOutcome of the step.
§
message: StringHuman-readable result message (includes the page-state excerpt and the failure message for failed steps).
LlmCallStarted
An LLM call started (one per attempted endpoint chain).
Fields
LlmCallFinished
An LLM call finished (success or exhaustion of all attempts).
Fields
TestFinished
A test finished.
Fields
RunFinished
The whole run finished.
Fields
Warning
A non-fatal warning (budget soft-exceeded, feature not enabled, …).
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