👩💻 Join our community of thousands of amazing developers!
In my previous article, we learned how to build a stand-alone library for esp-idf. In this article we are going to learn how to write unit tests for our code so we can have confidence it does what we want it to do. There are a few ways we can go about unit testing code written for ESP32: Run tests directly on ESP32 board Run tests using an emulator Run tests on Linux host using mocks We are going to learn how to write tests that can run on a Linux host, so it’s easy to plug them to a CI system...