{"categories":[{"label":"Electronic Design Automation (EDA)","url":"https://skillfed.io/packages/category/scientific-engineering-electronic-design-automation-eda"}],"enrichment":{"capability":"cocotb-test wraps cocotb hardware simulations in pytest, letting you write and run HDL testbenches as standard Python unit tests without Makefiles.","skillfed_tags":["hardware-verification","eda","pytest-plugin"],"use_cases":["Run Verilog or VHDL testbenches as pytest tests without writing Makefiles or shell scripts.","Parameterize HDL simulations using pytest.mark.parametrize to test designs across multiple configurations.","Parallelize simulation runs across CPU cores using pytest-xdist for faster design verification.","Integrate hardware verification into CI/CD pipelines alongside software unit tests.","Generate junitxml or HTML reports from cocotb test results using pytest plugins."],"what_it_does":"cocotb-test is a pytest plugin that bridges cocotb (a Python-based hardware simulation framework) with standard Python unit testing. Instead of writing Makefiles and shell scripts to orchestrate HDL simulations, you write pytest test functions that call cocotb-test's `run()` function with your Verilog or VHDL sources, top-level module name, and cocotb test module. The package handles compilation, simulation, and result collection, letting you use pytest's full ecosystem\u2014parameterization, filtering, parallel execution via pytest-xdist, and reporting plugins.\n\nThe package depends on cocotb (the core simulation engine), pytest (the test runner), and find_libpython (a utility for locating Python libraries). It supports Python 3.7 and later. Maintenance is dormant, with no activity for 587 days, though a release occurred on 2025-01-04. Installation requires a working simulator and environment setup, making it a high-friction dependency for teams not already running hardware simulations.","worth_installing":"Yes, if you are already using cocotb and pytest in a hardware design flow and want to eliminate Makefiles and gain pytest's testing ecosystem. No, if you are new to hardware simulation or lack a simulator installed\u2014the high install friction and dormant maintenance make this a specialist tool. Yes-with-conditions: verify compatibility with your cocotb version and simulator before adopting in a new project."},"id":"cocotb-test","links":{"html":"https://skillfed.io/packages/cocotb-test","md":"https://skillfed.io/packages/cocotb-test.md","pypi":"https://pypi.org/project/cocotb-test/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2025-01-04","license_spdx":null,"license_treatment":"permissive","name":"cocotb-test","python_support":"supports_current","summary":null},"popularity":{"monthly_downloads":242306,"position":8860,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.2.6"}
