Take a look at [PlatformIO's testing documentation](https://docs.platformio.org/en/stable/advanced/unit-testing/index.html), and setup a testing framework in the PlatformIO project.
Take a look at PlatformIO's testing documentation, and setup a testing framework in the PlatformIO project.