Interface: TestRunLogger<T>
Defined in: src/lib/models/testRun.ts:35 Logger interface for capturing test run execution events and progress. Provides methods for logging informational messages, errors, and processing events during test run execution. Users can implement custom loggers to integrate with their logging infrastructure or customize output formatting.Examples
Type Parameters
T
T extends DataStructure | undefined = undefined
The data structure type for the test run
TestRunLogger
Properties
error()
error: (Defined in: src/lib/models/testRun.ts:58 Logs error messages when issues occur during test run execution.message) =>void
Parameters
message
string
The error message to log
Returns
void
void
Example
info()
info: (Defined in: src/lib/models/testRun.ts:46 Logs informational messages during test run execution.message) =>void
Parameters
message
string
The informational message to log
Returns
void
void
Example
processed()
processed: (Defined in: src/lib/models/testRun.ts:83 Logs processing completion for individual test run entries. Called after each dataset entry has been processed, including output generation and evaluation. Provides detailed information about the processing results for monitoring and debugging.message,data) =>void
Parameters
message
string
The processing completion message
data
Detailed processing datadatasetEntry
Data<T>
The dataset entry that was processed
evaluationResults?
LocalEvaluationResult[]
Evaluation results (if any)
output?
YieldedOutput
The generated output (if successful)
Returns
void
void