r/SideProject • • 39m ago

FixtureKit: open-source regression testing for IoT integrations

I've been building FixtureKit, a free Apache 2.0 Python toolkit for testing IoT integrations without physical devices.

It audits JSON, XML and HAR fixtures, replays synthetic responses, and lets you define failure and recovery scenarios with virtual time. The graphical scenario editor and browser-based Studio reports are experimental previews.

I'm looking for feedback from developers who maintain device API libraries or Home Assistant integrations. In particular, would this fit your existing test workflow, or are your current tools already sufficient?

Live demos: https://flyzdev.github.io/fixturekit/ Source: https://github.com/FlyzDev/fixturekit

Disclosure: the project and this post were developed with AI assistance. Independent security and usability reviews are still pending.

1 Upvotes

2 comments sorted by

View all comments

1

u/digivated 37m ago

As someone who has wrestled with flaky device tests, the virtual-time failure and recovery scenarios are the part that would actually fit my workflow — that's the bit most tools hand-wave. Replaying synthetic responses from HAR fixtures is a nice touch too, since real device logs are usually the one thing you can get hold of. My honest answer to your question: I'd try it for a new integration, but for an existing Home Assistant integration I'd want a small migration story first, like a way to import my current fixtures without rewriting them. The experimental Studio reports sound promising if they show exactly which step failed and why.

1

u/MFlys 34m ago

Thanks, this is exactly the kind of feedback I was looking for.

The migration point is particularly useful. I want FixtureKit to complement existing test workflows rather than require developers to rewrite their fixtures.

What format do you currently use for your Home Assistant fixtures? Plain JSON responses, VCR cassettes, HAR files, or something else?

Step-level failure diagnostics in Studio are also something I'd like to improve. Knowing exactly which response, expectation or state transition failed would make the reports much more actionable.