espressif / idf-extra-components

Additional components for ESP-IDF, maintained by Espressif
147 stars 89 forks source link

add Catch2 unit test library wrapper #238

Closed igrr closed 12 months ago

igrr commented 12 months ago

Change description

This PR adds Catch2 unit testing library.

In addition to a simple CMake wrapper around the library, the component provides a register_catch2 function to register an ESP-IDF console command to invoke Catch2.

Two examples are provided:

Minimal supported version is set to v5.0, since earlier IDF releases didn't have WHOLE_ARCHIVE component property, which made linking all the tests tricky.

Checklist

github-actions[bot] commented 12 months ago

Unit Test Results

  11 files  ±0    11 suites  ±0   15m 18s :stopwatch: +5s   27 tests ±0    27 :heavy_check_mark: ±0  0 :zzz: ±0  0 :x: ±0  252 runs  ±0  252 :heavy_check_mark: ±0  0 :zzz: ±0  0 :x: ±0 

Results for commit da1c0f70. ± Comparison against base commit 07871a42.

:recycle: This comment has been updated with latest results.