Skip to main content

Framework for hardware test fixtures and automated test environments

Project description

Tests Docs

Fixate

Fixate is a Python library for testing real stuff. Fixate provides a framework for writing scripts in Python to test hardware. Providing drivers for equipment, support for switching, logging and a basic test runner UI. While Fixate is fairly simple, it is already being used to test real electronics products in real factories.

Getting Started

Fixate runs on Python 3.12 or greater.

Installing

Clone the repository using git or download a zip file and unzip the source. Then run setup.py to install. Alternatively, install from Pypi with 'pip install fixate'

Run the example scripts

There are a number of examples under the examples folder. You will need a clone fo the git repository to get the examples. For a minimal example try running tiny.py. For a more complicated example using multi-level tests, try running multi_level_design.py. The test runner is executed by calling the fixate package and passing in the test script to execute using the '-p' command line argument.

The following commands are for Windows:

git clone https://github.com/PyFixate/Fixate.git
cd Fixate
py -m venv .venv
.venv\Scripts\activate
py -m pip install .
py -m fixate -p examples\tiny.py

Make a script directly executable

For easier development, test scripts can be setup to call the fixate main as their own with some default parameters, as in:

python examples/tiny.py

Running the tests

In general, it is recommended to run the "core" set of tests. The "drivers" tests have a number of dependencies that are not required by default. Tests are run using pytest. The easiest way to run the test is using tox. To run the tests manually using pytest, excluding tests that required instruments, you can run pytest -m "not drivertest".

Check out the docs

https://fixate.readthedocs.io

Contributing

Contributions are welcome. Get in touch or create a new pull request.

Pull requests will need to pass code checks. You can run these most easily locally via pre-commit:

pip install pre-commit
pre-commit install --install-hooks 
pre-commit run --all-files # if not run before on your changes, otherwise leave off the flag

Authors

  • Ryan Parry-Jones - Original Developer - pazzarpj

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE.txt file for details

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fixate-0.6.5.tar.gz (120.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fixate-0.6.5-py3-none-any.whl (135.3 kB view details)

Uploaded Python 3

File details

Details for the file fixate-0.6.5.tar.gz.

File metadata

  • Download URL: fixate-0.6.5.tar.gz
  • Upload date:
  • Size: 120.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for fixate-0.6.5.tar.gz
Algorithm Hash digest
SHA256 fe32a45981767ccb73bcd5d08be9486e70c6c0d17a6257494a2f20494d8ce7b4
MD5 882810c3f86aec5f1b77b3d275e989fd
BLAKE2b-256 4a38a8c2872636bf4649fc064e22ae46301f7320edcff99d474b90ec87233ae0

See more details on using hashes here.

Provenance

The following attestation bundles were made for fixate-0.6.5.tar.gz:

Publisher: upload_pypi.yml on PyFixate/Fixate

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file fixate-0.6.5-py3-none-any.whl.

File metadata

  • Download URL: fixate-0.6.5-py3-none-any.whl
  • Upload date:
  • Size: 135.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for fixate-0.6.5-py3-none-any.whl
Algorithm Hash digest
SHA256 ba1fd58761cebd08a0a287ca4d89e2e8a8137db1b0772b28c3e05047916a2138
MD5 779e05a4d0bef6c8a10137014c4d4ab9
BLAKE2b-256 d1eb130f7e30f029df69a0c31650b560125a7623179121b18c0330797f0dbcc2

See more details on using hashes here.

Provenance

The following attestation bundles were made for fixate-0.6.5-py3-none-any.whl:

Publisher: upload_pypi.yml on PyFixate/Fixate

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page