pytest-fusesoc
Why pytest-fusesoc plugin?
The pytest-fusesoc plugin allows you to use pytest to discover and run simulation targets defined in FuseSoC *.core files.
Furthermore, testing capabilities can be greatly enhanced with existing pytest plugins, built-in pytest features like fixtures, test parametrization @pytest.mark.parametrize, test reporting, and more.
How the pytest-fusesoc plugin works?
To begin, it recursively collects all FuseSoC *.core files from the directory where pytest was invoked.
Then, it collects all simulation targets from each collected FuseSoC core.
Each collected simulation target is represented as a standalone pytest test that invokes the fusesoc command with the required arguments during test execution.
Example output from the pytest --collect-only command:
<Dir my-awesome-hdl-project>
<Dir rtl>
<Dir adder>
<File adder.core>
<Target testbench-1>
<Target testbench-2>
<Dir alu>
<File alu.core>
<Target testbench-1>
<Target testbench-2>
Example pytest command to run specific testbench:
pytest -k 'adder.core and testbench-1'
Alternatively when using VLN (<vendor>:<library>:<name>) of FuseSoC core:
pytest -k 'john:mylib:adder and testbench-1'
Metadata
Release files for pytest-fusesoc 0.1.11
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pytest_fusesoc-0.1.11.tar.gz | 23.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pytest_fusesoc-0.1.11-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 38.1 kB
Release files / pytest_fusesoc-0.1.11.tar.gz
| Download URL | pytest_fusesoc-0.1.11.tar.gz |
|---|---|
| Size | 23.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c88208208ad4173fb4dc3190740e36f74c3470615c96aaf17256a4f5e90f6c60
|
|
BLAKE2b-256 checksum How to use checksums |
3ea36d4991ec15f1944c37efe54c7c63a1064535179101e1d913b41e09d915c9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.15 {"installer":{"name":"uv","version":"0.12.15","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / pytest_fusesoc-0.1.11-py3-none-any.whl
| Download URL | pytest_fusesoc-0.1.11-py3-none-any.whl |
|---|---|
| Size | 15.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8423ce83fa7a5af494974bf078effaacd3088f8a575b854d4ff3c0169300adbd
|
|
BLAKE2b-256 checksum How to use checksums |
6e5e41d998f2433ba14484f786154144761af426808e4885971c247d48192d4e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.15 {"installer":{"name":"uv","version":"0.12.15","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|