Skip to main content
FixturFab

Sample Projects

Reference implementations demonstrating pytest-f3ts usage for different hardware testing scenarios.

stableLearn by example

Features

Complete working test projects
Multiple hardware scenarios covered
Best practice demonstrations
Integration examples

The sample projects repository contains complete, working test implementations for various hardware testing scenarios. Use these as references when building your own test suites or as starting points for similar projects.

Available Samples#

arduino-uno-test#

Functional tests for Arduino Uno boards. Demonstrates:

  • USB serial communication testing
  • Digital I/O verification
  • Analog input measurement
  • Basic firmware interaction

Good starting point for embedded board testing.

power-supply-validation#

Test suite for validating power supply units. Covers:

  • Output voltage accuracy across load range
  • Current limit behavior
  • Line/load regulation measurements
  • Protection feature verification

Demonstrates parametric testing with tight tolerances.

iot-sensor-board#

Tests for a WiFi-enabled sensor board. Shows:

  • Multi-interface testing (serial, I2C, SPI)
  • Wireless connectivity validation
  • Sensor calibration routines
  • Production test organization

Complex example with multiple test phases.

motor-controller#

Functional tests for motor control boards. Includes:

  • Power stage verification
  • PWM output testing
  • Feedback loop validation
  • Safety interlock testing

Demonstrates timing-sensitive hardware testing.

Using the Samples#

Each sample is a complete project you can use as a starting point:

Each sample is a complete project:

f3ts-sample-projects/
├── arduino-uno-test/
│   ├── tests/
│   ├── config/
│   ├── pyproject.toml
│   └── README.md
├── power-supply-validation/
│   └── ...
└── ...

To run a sample (with appropriate hardware connected):

cd arduino-uno-test
pip install -e .
pytest tests/ --hardware-config=config/dev.yaml

Learning Path#

If you're new to pytest-f3ts, we suggest this order:

  1. arduino-uno-test - Simple, accessible hardware
  2. power-supply-validation - Parametric testing patterns
  3. iot-sensor-board - Multi-interface complexity
  4. motor-controller - Advanced timing and safety

Contributing#

Sample project contributions are welcome. If you have a well-structured test project that demonstrates pytest-f3ts usage, consider submitting it:

  1. Fork the repository
  2. Add your sample following the existing structure
  3. Include a README explaining the hardware and test approach
  4. Submit a pull request

Requirements for submissions:

  • Working tests with real hardware
  • Clear documentation
  • No proprietary dependencies
  • Educational value for the community

Related Projects

View all open source projects

Use with FixturFab Fixtures

Our open-source testing stack integrates seamlessly with FixturFab fixtures. Configure your fixture in Studio and get a matching pytest-f3ts configuration.