MiSchroe / ioBroker.klf200

Adapter for ioBroker to connect to a KLF200 interface and run scenes and products.
MIT License
17 stars 14 forks source link

Integration tests with mock KLF server. #210

Closed MiSchroe closed 1 month ago

MiSchroe commented 2 months ago

Is your feature request related to a problem? Please describe. Currently, the integration test starts the adapter and due to fact that there is no real KLF-200 instance available for testing an erroneous exit code will be accepted. It would be better start a mock server that acts like a real KLF-200 device for testing different behaviours.

Describe the solution you'd like Include the mock server that is used in the klf-200-api library. Especially, test the adapter start-up with several configurations:

  1. Empty system table
  2. Filled system table
  3. Different notifications
  4. ...