Test history
test_historyShows a test's pass rate, current streak, and the run and commit where its failure streak began, helping you determine when the test started failing.
Instructions
One test across recent runs: pass rate, current streak, and the run (and commit) where the current failure streak began. Use it to answer "when did this start failing?".
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"test_id": "<test_id>"
},
"name": "test_history"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| test_id | Yes | Test id as "<classname>::<test name>", e.g. tests.unit.test_tax::test_vat_standard_rate |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | ||
| runs | Yes | ||
| history | Yes | Newest first | |
| test_id | Yes | ||
| pass_rate | Yes | ||
| last_passed | Yes | ||
| failing_since | Yes | First run of the current failing streak, if failing now | |
| current_status | Yes | ||
| current_streak | Yes |