-
Notifications
You must be signed in to change notification settings - Fork 0
[Feature]: Add baseline API tests for core routes #3
Copy link
Copy link
Open
Labels
apiHTTP routes, contracts, request & response shapes, AI spec, and client-server integration concernsHTTP routes, contracts, request & response shapes, AI spec, and client-server integration concernsbackendServer logic, data, db access, validation, rate limiting, AI integrations, & app behavior behind APIServer logic, data, db access, validation, rate limiting, AI integrations, & app behavior behind APIgood first issueGood for newcomersGood for newcomers
Metadata
Metadata
Assignees
Labels
apiHTTP routes, contracts, request & response shapes, AI spec, and client-server integration concernsHTTP routes, contracts, request & response shapes, AI spec, and client-server integration concernsbackendServer logic, data, db access, validation, rate limiting, AI integrations, & app behavior behind APIServer logic, data, db access, validation, rate limiting, AI integrations, & app behavior behind APIgood first issueGood for newcomersGood for newcomers
Area
API or backend
What problem are you trying to solve?
We currently have no baseline automated coverage around the core API routes, which makes regressions harder to catch when changing route logic, seed data, or response shapes.
Proposed solution
Add a small API test harness and start with a bounded slice of read-route coverage.
Suggested starting scope:
GET /api/healthzGET /api/botsGET /api/toolsGET /api/addonsGET /api/dashboard/summaryAcceptance criteria:
Alternatives considered
Keep relying on manual smoke testing only.
This is faster in the short term, but it does not protect against regressions as the route surface grows.
Add full end-to-end coverage for every endpoint immediately.
This would be higher coverage, but it is too broad for a starter issue and would slow down implementation.
Scope and impact
Relevant code:
artifacts/api-server/src/routes/health.tsartifacts/api-server/src/routes/bots.tsartifacts/api-server/src/routes/equipment.tsartifacts/api-server/src/routes/dashboard.tsNotes:
Keep scope tight. This issue is about a baseline test harness plus a first slice of route coverage, not full end-to-end coverage for every endpoint.
Pre-flight checks