From 2d9a03668cbbb47fb8d35ce7b4571d86271ca3a6 Mon Sep 17 00:00:00 2001 From: Loren Eteval Date: Thu, 20 Aug 2026 19:34:45 +0800 Subject: [PATCH] Update test suite guidance Signed-off-by: Loren Eteval --- tests/README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/README.md b/tests/README.md index 12c4c8b..bbc5db5 100644 --- a/tests/README.md +++ b/tests/README.md @@ -11,6 +11,7 @@ system proxy, TUN, routing, update network clients, or real proxy cores. | Area | Principal tests | | --- | --- | | Configuration, profiles, migration, repositories | `test_models_and_services.py` | +| Low-level application, runtime, editor, and storage contracts | `test_interface.py` | | Plugin registration, capability dispatch, factories, rollback | `test_plugin_architecture.py` | | Controller state and error transitions with injected runtimes | `test_controllers.py` | | SOCKS/SIP002 Shadowsocks codecs and generated round trips | `test_socks_uri.py`, `test_shadowsocks_uri.py` | @@ -19,6 +20,8 @@ system proxy, TUN, routing, update network clients, or real proxy cores. | Xray/Hysteria2 native-TUN ownership and proxy-only stripping | `test_native_tun_semantics.py` | | Rolling metrics, stable buckets, lazy rendering, and hover | `test_metrics_behavior.py` | | Proxy-only endpoint discovery, caching, and presentation | `test_endpoint_info.py` | +| Bounded service work, update validation, plugin UI, and worker lifetime | `test_service_runtime.py` | +| Frozenlib state helpers and mocked platform-operation boundaries | `test_frozenlib.py` | | Settings sandbox and navigation overlay behavior | `test_isolation_and_navigation.py` | | Editor mappings, lazy log rendering, routing/message-box/connection UI | `test_ui_behavior.py` | | Direct Qt ownership and destruction across independent UI families | `test_qt_lifetime.py` | @@ -63,7 +66,7 @@ environment, so activate the project's virtual environment first when needed. python -m unittest discover -s tests -v # Fast logic, persistence, plugin, controller, codec, and UI behavior -python -m unittest tests.test_models_and_services tests.test_plugin_architecture tests.test_controllers tests.test_subscription_sync tests.test_socks_uri tests.test_shadowsocks_uri tests.test_native_tun_semantics tests.test_metrics_behavior tests.test_isolation_and_navigation tests.test_ui_behavior -v +python -m unittest tests.test_interface tests.test_models_and_services tests.test_plugin_architecture tests.test_controllers tests.test_subscription_sync tests.test_socks_uri tests.test_shadowsocks_uri tests.test_native_tun_semantics tests.test_metrics_behavior tests.test_endpoint_info tests.test_service_runtime tests.test_frozenlib tests.test_isolation_and_navigation tests.test_ui_behavior -v # Direct Qt/process integration and destruction/lifetime checks python -m unittest tests.test_external_core tests.test_qt_lifetime -v