Running ESP32 unit tests
Posted: Thu Oct 23, 2025 9:05 am
Hello,
Using esp-idf v5.2.5 on Windows, I'm trying to run the example unit tests on my ESP32-C6-WROOM-1 board but after I build and flash the unit test app it seems to me like the unit tests are not actually running. Am I missing something? I'm trying to introduce some unit testing into a project and I figured I'd start with the examples provided. I tried multiple examples but none seemed to run, the last one being:
https://github.com/espressif/esp-idf/bl ... est_test.c
The output I'm getting from the monitor is:
In the repo's README.md I see that the output should be different and that I should be seeing the tests running.
https://github.com/espressif/esp-idf/bl ... /README.md
Using esp-idf v5.2.5 on Windows, I'm trying to run the example unit tests on my ESP32-C6-WROOM-1 board but after I build and flash the unit test app it seems to me like the unit tests are not actually running. Am I missing something? I'm trying to introduce some unit testing into a project and I figured I'd start with the examples provided. I tried multiple examples but none seemed to run, the last one being:
https://github.com/espressif/esp-idf/bl ... est_test.c
The output I'm getting from the monitor is:
Code: Select all
I (289) main_task: Started on CPU0
I (289) main_task: Calling app_main()
#### Executing one test by its name #####
#### Running tests with [mean] tag #####
#### Running tests without [fails] tag #####
#### Running all the registered tests #####
#### Starting interactive test menu #####
--- Warning: Writing to serial is timing out. Please make sure that your application supports an interactive console and that you have picked the correct console for serial communication.In the repo's README.md I see that the output should be different and that I should be seeing the tests running.
https://github.com/espressif/esp-idf/bl ... /README.md