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.12
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.12.tar.gz | 23.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pytest_fusesoc-0.1.12-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 38.2 kB
Release files / pytest_fusesoc-0.1.12.tar.gz
| Download URL | pytest_fusesoc-0.1.12.tar.gz |
|---|---|
| Size | 23.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5c82a8e11375d4dba073255db776b74f3441eb4704f3737807cef2d304fd3234
|
|
BLAKE2b-256 checksum How to use checksums |
b005d14e34eb564312be4d277d7fe5fe42daec79f735851c889938c1b02f7fa6
|
| 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.12-py3-none-any.whl
| Download URL | pytest_fusesoc-0.1.12-py3-none-any.whl |
|---|---|
| Size | 15.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a13b938f12303fa97b19ee837bf1ef0b30c342f9524e0fc588b95c7c570ad172
|
|
BLAKE2b-256 checksum How to use checksums |
e830e68c07c20a111f426564d914c07c11a959f7cab9a861dfae0c84d7074dd5
|
| 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}
|