generate_api_integration_test
Generate API integration tests (supertest, httpx or REST Assured) asserting status, response body (partial match) and auth; optional validation, security-header and rate-limit checks
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": {
"method": "<method>",
"path": "<path>"
},
"name": "generate_api_integration_test"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| auth | No | Endpoint requires a bearer token (adds a 401-without-token test) | |
| path | Yes | ||
| checks | No | Extra behaviour tests to include | |
| method | Yes | ||
| appPath | No | supertest: module exporting the Express/Koa app (default ../src/app) | |
| baseUrl | No | httpx / REST Assured: base URL (default http://localhost:3000; BASE_URL env overrides) | |
| framework | No | ||
| packageName | No | REST Assured: Java package (default com.example.integration) | |
| requestBody | No | ||
| expectedBody | No | Subset the response body must contain, e.g. {"status": "ok"} | |
| expectedStatus | No |