ollama_write_tests
Generates unit tests for code using a specified testing framework and local Ollama models, helping developers validate functionality and reduce manual test-writing effort.
Instructions
Generate unit tests for code using Ollama.
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>",
"framework": "<framework>"
},
"name": "ollama_write_tests"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | The code to write tests for | |
| model | No | Ollama model to use (default: mistral-small) | gemma3:12b |
| framework | Yes | Testing framework to use (e.g., 'jest', 'pytest', 'mocha') |