cocotb_list_tests
Discover all @cocotb.test() coroutines and their docstrings in a Python testbench file without running simulation, enabling test enumeration and documentation review.
Instructions
Discovers all @cocotb.test() coroutines and their docstrings in a Python testbench file without executing simulation.
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": {
"test_file": "<test_file>"
},
"name": "cocotb_list_tests"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Optional working directory. | |
| test_file | Yes | Path to the Python testbench file (e.g. 'test_dff.py'). |