You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test(core): add iterm2 session preservation and restore assertions
- add test_dedup_preserves_iterm2_session_id to verify timestamp rewrites keep session id
- enhance tab notification test to verify osascript restore in execute chain
- update tests.context.md with new test count (71 total, 62 core)
Copy file name to clipboardExpand all lines: tests/tests.context.md
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,13 +8,13 @@ Associated with: all tests in the codebase
8
8
9
9
**Format**: `test_name` - [concise description of what's being tested] - [rationale for why test is needed]
10
10
11
-
**Status**: **70 total tests** (61 core + 9 integration) across 2 files - All tests properly accounted for and documented
11
+
**Status**: **71 total tests** (62 core + 9 integration) across 2 files - All tests properly accounted for and documented
12
12
13
13
**Structure**: Tests are organized by functionality and concerns, emphasizing behavior-focused testing over implementation details. The 2-file structure matches the natural architectural boundary between core logic and external system integration.
-`test_main_with_no_args_exits_with_error` - CLI error handling when no command provided - CLI must provide helpful usage info and exit gracefully
@@ -27,7 +27,7 @@ Associated with: all tests in the codebase
27
27
-`test_main_blocks_direct_execution_without_wrapper_env` - Prevents direct execution without wrapper environment variable - Critical for preventing Claude Code hooks from blocking
28
28
-`test_main_allows_execution_with_wrapper_env` - Allows execution when wrapper environment variable is set - Ensures proper wrapper integration works correctly
-`test_init_workflow_captures_and_saves_window` - Complete init workflow from JSON input to file creation including tmux session ID - End-to-end validation of session initialization
32
32
-`test_init_workflow_without_hammerspoon` - Init falls back to UNAVAILABLE but still captures tmux session ID - Validates graceful degradation
33
33
-`test_init_workflow_captures_iterm2_session_id` - Init captures iTerm2 focused session ID alongside window metadata - Enables same-window tab restoration for iTerm2
@@ -40,6 +40,7 @@ Associated with: all tests in the codebase
40
40
-`test_wrapper_performance` - Bash wrapper returns immediately without waiting for Python - Critical for non-blocking hook execution in Claude Code
41
41
-`test_notify_sent_when_same_window_but_tmux_detached` - Notify sends notification when same window but user switched tmux sessions - Detects intra-window tmux session switches
42
42
-`test_notify_sent_when_same_iterm2_window_but_different_tab` - Notify sends local notification when iTerm2 tab changed in same window - Enables tab-level away detection in iTerm2
43
+
-`test_dedup_preserves_iterm2_session_id` - check_deduplication preserves iTerm2 session ID on timestamp rewrite - Prevents silent loss of tab restore on second-and-later notifications
43
44
-`test_file_locking_prevents_race_conditions` - File locking prevents race conditions and preserves tmux session ID - Essential for preventing duplicate notifications
0 commit comments