Can I use pytest for hardware testing with TofuPilot?
Updated July 7, 2026
Yes. The CLI runs pytest suites natively under an embedded plugin: each test_* function becomes a phase, and assert statements like "assert lo <= x <= hi" become numeric measurements with limits. Run identity is read from [tool.tofupilot] in pyproject.toml.
Related questions
- Can instrument connections stay open across an entire unit or station session?Yes. Plugs have a lifecycle scope: phase, slot, run, or station. With scope: station, the plug class is constructed once in a long-lived Python process, its…
- What is TofuPilot's relationship with OpenHTF?We've used TofuPilot for years on drone manufacturing floors and maintain openhtf.org, the open-source OpenHTF documentation site. We're also close to the…
- Can I sync TofuPilot test failures to Linear?Yes. The Linear integration lets failing runs and phases open or update tickets from the dashboard. It offers two actions: Create issue (with optional…
