utest: remove RT_UTEST_USING_ALL_CASES #10741
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixed: #10734
由于目前很多模块的 utest 并不打算支持一次性统一开启,另外有些模块的测试由于比较复杂,譬如对其他模块有很多依赖,这导致简单通过一个全局开关来控制使能所有测试变得几乎不可能。这导致过去定义的
RT_UTEST_USING_ALL_CASES已经失去了它最初的含义。建议淘汰掉这个配置开关。如果某些模块内部觉得需要自己通过配置 enable 一批功能测试,那这种局部的 enable all 交给模块自己去实现,不再提供一个 RTT 全局的 enable 开关了。
如果以后再有此类一次性使能所有单元测试的需求,建议仔细设计一下,特别是要考虑从易用性上如何保证通过打开一个开关就能将所有涉及的模块的依赖关系全部都打开。
特别的

src/Kconfig的这个改动请看一下是否合适?