unicstl/3rdparty/unicstl-unity/README.md

13 lines
387 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 问题和解决方案
## 1. 添加配置文件
在unity_internals.h文件中添加了宏定义方便使用unity_config.h文件。
```c
#define UNITY_INCLUDE_CONFIG_H
```
## 2. 多文件打印测试文件路径不合理的问题
修改`RUN_TEST`宏,在测试文件路径前添加`__FILE__`。
借助`UnitySetTestFile`函数,打印的路径信息对多文件测试也有效。