Get test harness analysis
get_test_harness_analysisGet Snag's test-harness readiness analysis for a connected repo: whether Snag can run its tests (status), whether they pass, the detected test command, and — if there's no harness — concrete setup suggestions (framework, steps, a starter test, config files) to implement. Call this right after connecting a repo, before relying on test-backed fixes. status is one of: "pass" (tests run and pass), "fail" (they run but have pre-existing failures — still a usable harness), "no_harness" (no runnable tests were found — either no test command was detected, or a command WAS detected and run but its own output shows it found nothing to invoke or executed and collected zero tests; use the suggestions), "checking" (a bake/test run is in flight — retry shortly), "error" (the bake or the check itself failed before any test could run; the harness state is UNKNOWN, so do not claim a fix is test-verified), "none" (no check has ever run for this repo), or "not_connected" (no repo connected). If stalled: true accompanies a "checking" status, that check will NEVER complete on its own — treat it exactly like "error" and stop polling; a human must re-run it from the Snag dashboard.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_test_harness_analysis"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | No |