From 9e1705a8b41371bf7099d25862eab9ce20ac9fb6 Mon Sep 17 00:00:00 2001 From: Shen Mengjing Date: Mon, 9 Mar 2026 15:31:31 +0800 Subject: [PATCH] docs: Add related documentation for unit test --- docs/en/api-guides/unit-tests.rst | 5 +++++ docs/zh_CN/api-guides/unit-tests.rst | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/docs/en/api-guides/unit-tests.rst b/docs/en/api-guides/unit-tests.rst index f04cc861d1..f541ed2061 100644 --- a/docs/en/api-guides/unit-tests.rst +++ b/docs/en/api-guides/unit-tests.rst @@ -369,3 +369,8 @@ 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. + +Related Documentation +--------------------- + +- `Unit Testing with Unity in VS Code `__ diff --git a/docs/zh_CN/api-guides/unit-tests.rst b/docs/zh_CN/api-guides/unit-tests.rst index 51f9b6e332..6318eb8dc6 100644 --- a/docs/zh_CN/api-guides/unit-tests.rst +++ b/docs/zh_CN/api-guides/unit-tests.rst @@ -369,3 +369,8 @@ Mocks -------------------- :example:`system/unit_test` 演示了如何在 {IDF_TARGET_NAME} 开发环境中使用 Unity 库为自定义组件添加单元测试,展示了如断言、测试注册等功能,以及如何使用 UNITY_BEGIN() 和 UNITY_END() 宏。 + +相关文档 +-------- + +- `在 VS Code 中使用 Unity 框架进行单元测试 `__