需求

以前自己是在每个模块的下面简单写个测试函数,用于模块的功能测试,最新想学习下嵌入式的单元测试。

解决

先汇总一下资料,等有时间跑一个 demo 起来看看结果.

https://blog.csdn.net/ibanezjem/article/details/104891204 https://blog.csdn.net/zhengyangliu123/article/details/79486383 https://mp.weixin.qq.com/s/foD7rxvCXudzbUF-Hp84VA https://www.eet-china.com/mp/a35487.html https://www.zhihu.com/question/19755217 https://www.cnblogs.com/pingwen/p/9206406.html https://zhuanlan.zhihu.com/p/67162814 https://zhuanlan.zhihu.com/p/67164631 https://zhuanlan.zhihu.com/p/67165611 https://zhuanlan.zhihu.com/p/67199540 https://blog.csdn.net/zhengnianli/article/details/104036227 https://blog.csdn.net/ybhuangfugui/article/details/131027470 https://blog.csdn.net/liao20081228/article/details/76984975

参考