Skip to main content

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)

Source distribution for pytest-fusesoc 0.1.11
File Size Uploaded
pytest_fusesoc-0.1.11.tar.gz 23.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pytest-fusesoc 0.1.11
File Interpreter ABI Platform
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}

Release history Release notifications | RSS feed

0.1.12

2 release files

This release

0.1.11 This release

2 release files

0.1.10

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page