analyze_test_results
Reads JUnit XML reports of test runs (Playwright, Cypress, Jest, Vitest, pytest, Surefire…), oldest first, and tells regressions from flaky tests. Each test gets a status (regression, broken, new_failure, failing, flaky, recovered), a confidence (confirmed, probable, undecided) and its evidence; failures sharing a cause are grouped, environment errors flagged. Deterministic. verdict FAIL = regression or broken in the latest run, INCONCLUSIVE = undecidable.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"reports": [
"<testsuite><testcase name=\"pay\"/></testsuite>",
"<testsuite><testcase name=\"pay\"><failure message=\"500\"/></testcase></testsuite>"
]
},
"name": "analyze_test_results"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| commits | No | Optional: the commit of each report, same order. Same-commit pass+fail proves a flake. | |
| reports | Yes | JUnit XML text of each run, oldest first (1 to 50). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| runs | No | ||
| tests | No | ||
| summary | No | ||
| verdict | No | ||
| next_steps | No | ||
| failure_groups | No |