Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 950 Bytes

File metadata and controls

35 lines (24 loc) · 950 Bytes

Testing

Host Unity (no flash, no ESP-IDF) — preferred for CI

cmake -S host_test -B host_test/build
cmake --build host_test/build
ctest --test-dir host_test/build --output-on-failure

See host_test/README.md.

Covers embed::string, embed::Message, and ThingsBoard TelemetryBuilder / TelemetryBatch.

Device Unity app

cd test_apps/embed_unity
idf.py set-target esp32s3
idf.py build flash monitor

Same primitives on chip via ESP-IDF Unity (TEST_CASE / unity_run_all_tests).

Component test/ tree

components/embed/test/ for the IDF unit-test-app (idf.py -T embed).

Adding tests

Kind Where
Pure logic / POD / string / TB telemetry JSON host_test/ (+ optional mirror in test_apps/embed_unity)
Needs FreeRTOS / esp_event test_apps/embed_unity or component test/ on device / linux target
Hardware device smoke only