Page 1 of 1

Is Unit Testing used during the development of rainmaker

Posted: Fri Aug 04, 2023 8:44 am
by JoshNOA
Just a simple question, what processes are in place for the unit and integration testing of rainmaker?

I feel like the test coverage is a lot lower than it should be, and its rather hurting my confidence in the product.

So I ask, how is this tested in a development environment? How are releases tested?


Best Wishes,

Joshua C

Re: Is Unit Testing used during the development of rainmaker

Posted: Wed Aug 09, 2023 12:15 pm
by ESP_Piyush
The components used in ESP RainMaker (like MQTT, Wi-Fi provisioning, NVS, Local Control, etc.) have their unit tests in the ESP IDF Framework. We also have internal tests to ensure that the Wi-Fi and MQTT connections work fine after the commits since these are the most important pieces. Integration testing is done using automation suite for phone apps which tests all the RainMaker functionality implemented on the firmware.

We can surely improve further on the testing, but is their any specific issue that you have faced apart from the stop/deinit APIs not working as intended?