A template project to use Catch2 unittest framework on ESP-IDF.
- curl: to download single header/single file version of Catch2 (
catch_amalgamated.{hpp, cpp}
)
For CMake build system:
$ idf.py build
$ idf.py flash monitor
Then, you can see test passed log in console.
I (460) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
===============================================================================
All tests passed (1 assertion in 1 test case)
- ESP-IDF v5.2
- ESP32-S3
- ESP32
Licensed under either of:
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.