Skip to content

A template project to use Catch2 unittest framework on ESP-IDF.

License

Notifications You must be signed in to change notification settings

mittelab/esp-idf-catch

 
 

Repository files navigation

Use Catch2 unittest framework on ESP-IDF

A template project to use Catch2 unittest framework on ESP-IDF.

prerequisites

  • curl: to download single header/single file version of Catch2 (catch_amalgamated.{hpp, cpp})

build & run

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)

Tested environment

  • ESP-IDF v5.2
  • ESP32-S3
  • ESP32

License

Licensed under either of:

at your option.

Contribution

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.

About

A template project to use Catch2 unittest framework on ESP-IDF.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CMake 84.9%
  • C++ 15.1%