generate-tests
Generate API test cases from Java, JavaScript, or TypeScript code for JUnit, Jest, or Mocha, so you can validate API behavior without writing tests manually.
Instructions
生成API测试用例
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": {
"code": "<code>",
"language": "<language>"
},
"name": "generate-tests"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | API代码内容 | |
| language | Yes | 编程语言 | |
| testFramework | No | 测试框架 | junit |