docs: add or update application examples of system component

This commit is contained in:
Linda
2024-07-09 16:48:09 +08:00
parent 048f297a44
commit 0af1256a12
27 changed files with 161 additions and 65 deletions

View File

@@ -368,3 +368,8 @@ The unit test needs to inform the cmake build system to mock dependent component
Both methods will override existing components in ESP-IDF with the component mock. The latter is particularly convenient if you use component mocks that are already supplied by IDF.
Users can refer to the ``esp_event`` host-based unit test and its :component_file:`esp_event/host_test/esp_event_unit_test/CMakeLists.txt` as an example of a component mock.
Application Examples
--------------------
:example:`system/unit_test` demonstrates how to use the Unity library to add unit tests to custom components in an {IDF_TARGET_NAME} development environment, showcasing features such as assertions, test registration, and the use of UNITY_BEGIN() and UNITY_END() macros.