cocotb-test is a pytest plugin for running and testing hardware designs with cocotb. It simplifies integration of cocotb tests into Python's pytest framework. Current version is 0.2.6, released 2023-08-22. Release cadence is irregular.
pip install cocotb-testNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Basic cocotb test example. Run with: pytest tests/ -v
Install a supported simulator and ensure it is in your PATH. For example, on Ubuntu: sudo apt install iverilog
Pin pytest<8.0 in your requirements: pytest<8.0
Simply install cocotb-test and run 'pytest' in your test directory; no import needed.
Remove the import statement; the plugin is auto-discovered by pytest.
Ensure cocotb-test is installed (pip install cocotb-test) and use a supported pytest version (<8.0).
Install the simulator (e.g., 'sudo apt install iverilog' on Ubuntu) and ensure it's in your PATH.
No resource links recorded.