generate_unit_tests
Generate unit tests that match a proposed code fix. Provide the repository, test file path, test framework, and test code to create aligned tests.
Instructions
Generate matching unit tests for the proposed code fix
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": {
"repo": "<repo>",
"testFilePath": "<testFilePath>",
"testFramework": "<testFramework>",
"testCode": "<testCode>"
},
"name": "generate_unit_tests"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | Target repository in "owner/repo" format | |
| testCode | Yes | Generated unit test code | |
| testFilePath | Yes | File path for the test file (e.g. "tests/parser.test.ts") | |
| testFramework | Yes | Detected test framework (e.g. "Jest", "PyTest") |