From 962146526aebc32fcba26954c6059910f1681d2e Mon Sep 17 00:00:00 2001 From: Wolfvin Date: Sat, 4 Jul 2026 08:26:04 +0700 Subject: [PATCH] fix(affected): show hint when no test files found but source dependents exist --- scripts/commands/affected.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/commands/affected.py b/scripts/commands/affected.py index 3e40594..8b56cef 100644 --- a/scripts/commands/affected.py +++ b/scripts/commands/affected.py @@ -158,6 +158,9 @@ def execute(args, workspace): } # Default + --json: return the full result dict (formatter handles output) + st = result.get("stats", {}) + if st.get("affected_test_count", 0) == 0 and st.get("visited_total", 0) > 0: + result["note"] = "No test files found in dependents. Use --include-source to list all affected source files." return result