test_generate_mocks
Create mock objects, stubs, and test fixtures from source code to isolate dependencies in tests. Specify framework and dependencies to generate ready-to-use test doubles.
Instructions
Generate mock objects, stubs, and test fixtures for dependencies (Pro)
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": {
"source_code": "<source_code>"
},
"name": "test_generate_mocks"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| api_key | No | API key for authentication | |
| framework | No | Test/mock framework to use | |
| source_code | Yes | Source code with dependencies to mock | |
| dependencies | No | List of dependencies to create mocks for |