Skip to content

The agent that grows with you

test(kanban): stats text output shows the review lane

Dusk1ec1b205df6805
diff --git a/tests/hermes_cli/test_kanban_cli.py b/tests/hermes_cli/test_kanban_cli.py
index be8aa5ad4fd..334a9ab5393 100644
--- a/tests/hermes_cli/test_kanban_cli.py
+++ b/tests/hermes_cli/test_kanban_cli.py
@@ -58,6 +58,20 @@ def test_kanban_list_json_includes_session_id(kanban_home):
)
+def test_run_slash_stats_text_includes_review_lane(kanban_home):
+ """``stats`` text output must surface the ``review`` lane: board_stats() counts
+ every non-archived status, so the ``By status:`` block must list ``review`` too
+ or its count silently disappears while ``--json`` still shows it."""
+ import re
+
+ with kbc.connect_closing() as conn:
+ tid = kb.create_task(conn, title="needs review", assignee="alice")
+ assert kb.request_review(conn, tid, summary="s", force=True)
+
+ assert re.search(r"review\s+1", kc.run_slash("stats"))
+ assert json.loads(kc.run_slash("stats --json"))["by_status"].get("review") == 1
+
+
def test_kanban_show_json_includes_runtime_limit(kanban_home):
with kbc.connect() as conn:
bounded_id = kb.create_task(