generate_tests
Create comprehensive test suites from provided code, choose a testing framework, and set a target coverage percentage to validate behavior.
Instructions
Engineer generates comprehensive test suite for the provided 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": "generate_tests"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | The code to generate tests for (min 10 characters) | |
| test_framework | No | Testing framework to use (default: jest) | jest |
| coverage_target | No | Target code coverage percentage (default: 80) |