Every test returns a TestResult object with score, status, and reasoning.
TestResult
| Field | Type | Description |
|-------|------|-------------|
| score | float | Score from 0 to 10 |
score
float
| passed | bool | True if score ≥ threshold |
passed
bool
| reasoning | str | AI's explanation |
reasoning
str
| criteria | str | Criteria used |
criteria
| expected | str | Expected output |
expected
| output | str | Tested output |
output
| duration | float | Test duration in seconds |
duration
Default threshold is 7.0. Customize it: