as my home automation system grows and grows, every configuration change and every update is a bit of a risk which impact I can not really estimate in advance. It is just hard to estimate how long it takes and even after it is done one is left unsure if there are some side effects one did not discover yet.
As a software developer I am used to write tests for every line of code I write. I wanna do that for my openHAB configuration too. So I am asking if there is already something I can use or if it is something I can eventually contribute to the openHAB ecosystem.
I read some threads about duplicating the production system as some kind of test system using the event bus as connection. But even with this approach I have to check the whole functionality of my home automation manually.
I was thinking of some kind of a test framework which allows to describe the behavior of the home automation system, e.g. (Gherkin style)
GIVEN sensor A’s value is 10
AND item B is OFF
WHEN sensor A’s value changes to 15
THEN item B is ON
So my questions are:
- Is there something similiar to this I described?
- If not is there any interest in such an framework?