Hi,
I am working on a binding to control my Marantz SR7007 AV receiver. The goal is to create a general purpose controller.
Since I'm used to work TDD I am looking into how to properly unit/integration test this binding. I cannot find any information about this.
Can someone provide more info about how to do proper unit and/or integration testing?
I first tried to add test cases in the binding project, as you would do for any other project, but then saw that other bindings had seperate binding-test projects.
For now I copied one of those and adapted it a bit. Since there is a Maven archetype for creating a binding project, should there not also be an archetype to properly setup a new test project for a binding?
ps. For those interested: my development is in
https://github.com/diversit/openhab. I'm using Scala to implement the binding which was a bit of a hassle to setup but works fine now.
pps. I created a mock tcp-service for integration testing/simulation which I will share on Github soon.
Regards,
Joost den Boer