generate_tests
Generate test cases for code in a chosen language, with optional framework and coverage target, to verify behavior and improve code reliability.
Instructions
Generate comprehensive test cases for code
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 | Code to test | |
| language | Yes | Programming language | |
| framework | No | Testing framework to use | |
| coverageTarget | No | Target test coverage percentage |