test_code
Automatically generates test cases for provided code, supporting custom test frameworks to ensure robust functionality and quality assurance.
Instructions
Generates tests for the given 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>"
},
"name": "test_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Code to test | |
| test_framework | No | Test framework to use |