mirror of
https://github.com/espressif/esp-idf.git
synced 2025-09-30 19:19:21 +00:00
docs: add or update application examples of system component
This commit is contained in:
@@ -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.
|
||||
|
Reference in New Issue
Block a user