Framework for hardware test fixtures and automated test environments
Project description
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.8 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
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file fixate-0.6.3.tar.gz
.
File metadata
- Download URL: fixate-0.6.3.tar.gz
- Upload date:
- Size: 113.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2803b24028020a49461e55a4490c54c008cdbdbc7694bc1f0b993d5f8d6d5538 |
|
MD5 | f07b3740b2850a7b6a7d02c88a281cdb |
|
BLAKE2b-256 | a47c9dd8ca75248147ebf1ab7b981df0f1f98d93fdf9802fc33c87f9e72740a5 |
File details
Details for the file fixate-0.6.3-py3-none-any.whl
.
File metadata
- Download URL: fixate-0.6.3-py3-none-any.whl
- Upload date:
- Size: 126.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 63a2a23e408957687d53ce67ca2246ea4a526dd68323b3d445eb9b3633e8cac5 |
|
MD5 | 0870b65a1bc0385ee142a8c7b75ad964 |
|
BLAKE2b-256 | 2616cd308bef415db3419280eaf7754e97ff89f33b26ae0848060343829203b9 |