基于idf的应用层代码,怎么做软件单元测试?
基于idf的应用层代码,怎么做软件单元测试?
基于idf的应用层代码,怎么做软件单元测试?乐鑫有现成的单元测试的环境吗?
Re: 基于idf的应用层代码,怎么做软件单元测试?
Please check this example project: examples/system/unit_test
Re: 基于idf的应用层代码,怎么做软件单元测试?
Sorry, we don't have any out of the box support for this, yet. You can look into tools such as CMock for this purpose. If you use the new CMake build system in IDF, it should be easy to integrate a call to CMock into your CMakeLists.
Re: 基于idf的应用层代码,怎么做软件单元测试?
This is possible using app_trace and OpenOCD. Please refer to https://github.com/espressif/esp-idf/tr ... ystem/gcov.
Who is online
Users browsing this forum: No registered users and 186 guests