react-native-esp-idf-provisioning icon indicating copy to clipboard operation
react-native-esp-idf-provisioning copied to clipboard

Unit tests

Open mateogianolio opened this issue 2 years ago • 1 comments

It's difficult to unit test this as practically all code needs a real device to test with.

Suggestions on methodology are welcome.

mateogianolio avatar Oct 31 '23 16:10 mateogianolio

I think the best way forward here would be

  1. to record BLE events between phone and device and then somehow replay them in unit tests.
  2. to setup a self-hosted github runner connected to one android and one ios device with an esp32 next to it and then use detox (https://wix.github.io/Detox/) to run end-to-end testing of the example app.

mateogianolio avatar Jan 25 '24 15:01 mateogianolio