[Testkit] Self-serve plan + report endpoints #56
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What & Why
Executor agents currently get the test script from
GET /api/testkitbut the test plan and report template live only as a repo file (TIMMY_TEST_PLAN.md). Agents working on new features should be able to fetch everything from the running app — no repo access required.Done looks like
GET /api/testkit/planreturnsTIMMY_TEST_PLAN.mdastext/markdownGET /api/testkit/reportreturns just the report template section (everything under## Report template) as plain textAGENTS.mdhas a Testing section telling agents:curl <BASE>/api/testkit/plancurl -s <BASE>/api/testkit | bashcurl <BASE>/api/testkit/reportGET /api/testkitbehaviour unchangedOut of scope
Tasks
/api/testkit/planroute — ReadTIMMY_TEST_PLAN.mdat request time, stream astext/markdown. Path resolves relative to project root./api/testkit/reportroute — Extract content from## Report templateheading to end-of-file from same source document.AGENTS.md— Add Testing section with three-step workflow and exact curl commands.Relevant files
artifacts/api-server/src/routes/testkit.tsTIMMY_TEST_PLAN.mdAGENTS.md