go_test
Execute Go tests with coverage analysis and race detection to identify bugs and improve code reliability.
Instructions
Run Go tests with coverage and race detection
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "go_test"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | Additional arguments | |
| race | No | Enable race condition detection | |
| tags | No | Build tags to include | |
| cover | No | Enable coverage analysis | |
| package | No | Go package to test (e.g., ./...) | |
| verbose | No | Enable verbose output | |
| directory | No | Working directory for the command |