diff options
| author | Chen Wang <[email protected]> | 2025-09-25 14:01:47 +0800 |
|---|---|---|
| committer | R b b666 <[email protected]> | 2025-09-26 09:57:54 +0800 |
| commit | 495c8cfc25e0d03eb6ba9914df17487f839c557d (patch) | |
| tree | a95ac01cf14e5d0d90f2666e8fb5e2d1f6adcee5 /documentation | |
| parent | 320aa25ad4cc5f16f0a6c016a7eb776b74cc68da (diff) | |
utest: remove RT_UTEST_USING_ALL_CASES
Many modules' utests currently don't support enabling all
tests at once. Furthermore, some modules' tests are complex,
for example due to their numerous dependencies on other
modules. This makes it nearly impossible to enable all
tests with a single global switch. Consequently, the
previously defined `RT_UTEST_USING_ALL_CASES` has lost
its original meaning.
We recommend deprecating this configuration switch. If a
module needs to enable a group of functional tests through
its own configuration, this local enable all switch should
be implemented by the module itself, and a global RTT enable
switch will no longer be provided.
If such a requirement arises in the future, we recommend
careful design, especially considering how to ensure that
turning on a single switch enables all dependencies for
all involved modules for ease of use.
Signed-off-by: Chen Wang <[email protected]>
Diffstat (limited to 'documentation')
| -rw-r--r-- | documentation/6.components/utest/utest.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/documentation/6.components/utest/utest.md b/documentation/6.components/utest/utest.md index 9cc63b6b81..713adfbb14 100644 --- a/documentation/6.components/utest/utest.md +++ b/documentation/6.components/utest/utest.md @@ -314,7 +314,7 @@ For each module, you can maintain unit testcases in a unified manner in the foll - `Kconfig` file, which defining configuration options for the unit test cases of this module, the recommended option is named `RT_UTEST_TC_USING_XXXX`, XXXX is the global unique module name of this module. - - `SConscript` file, note that when adding src files, in addition to relying on `RT_UTEST_TC_USING_XXXX`, you must also rely on `RT_UTEST_USING_ALL_CASES`, the two dependencies are in an "or" relationship. The role of `RT_UTEST_USING_ALL_CASES` is that once this option is turned on, all unit-testcases will be enabled to avoid selecting one by one. + - `SConscript` file, when adding src files, you need to rely on `RT_UTEST_TC_USING_XXXX`. After completing the above steps, rsource the path of the Kconfig file of utest of this module to the file `Kconfig.utestcases`. |
