google / openhtf

The open-source hardware testing framework.
Apache License 2.0
530 stars 217 forks source link

Best practice on how to organize product-dependent tests #1146

Open siwica opened 6 months ago

siwica commented 6 months ago

For simplicity assume I have products A, B and C with 1, 2 and 3 digital outputs each that I want to write a test for. Let's assume the test should have 1, 2 or 3 phases (with one measurement each) and a configurable name for each pin depending on the product.

What would be the canonical way of how to write such a generic test such that only some parametrization is needed for each product?