We created for you an official series that concentrates on creating a convenient environment for test-driven development for embedded devices and will introduce you to the Unit Testing mechanism used in the PlatformIO ecosystem. Below is a list of the articles in the Unit Testing with PlatformIO series:

Extra Tutorials

Project Examples

For the other examples and source code please follow to PlatformIO Unit Testing Examples repository.