Did any of you have found how to make automatic tests for ESPHome External components C++ code?

I have made my first external component and published it some months ago ( GitHub - distante/esphome-components: External components for home-assistant )

The thing is, it was broken for a long time due a bad commit I did and since I was not using it actively I did not found out until someone reported.

While fixing it I again arrived to the frustration of developing code that I can not (or do not know how to) test in an automatically way. The handling of the python part is the easy part, I need to check that my handling of UART Messages do not break when changing code.

Do any of you do have achieved a way to test the c++ code in ESPHome external components? I am too old to remember all the use cases my code has after months of not doing anything there.

Thanks!