Testing
Running Tests
Section titled “Running Tests”Python tests use pytest. Run the full suite:
pytest -xvs tests/Run a specific test file:
pytest -xvs tests/test_trim_session.pyTest Coverage
Section titled “Test Coverage”The test suite covers:
| Area | Test Files |
|---|---|
| Session search & indexing | test_search_index.py, test_search_import.py, test_aichat_search_truncate.py |
| Session finding & filtering | test_find_sessions.py, test_find_session_filtering.py |
| Session ID resolution | test_session_id_resolution.py, test_session_id_consistency.py, test_session_resolution.py |
| Trim & smart trim | test_trim_session.py, test_smart_trim.py, test_smart_trim_mock.py |
| Resume / continue flow | test_continue_flow.py |
| Export | test_export_yaml.py |
| Sidechain sessions | test_sidechain_sessions.py |
| Codex integration | test_codex_clone_codex_home.py |
| tmux-cli | test_tmux_cli_controller.py, test_tmux_execution_helpers.py |
| Utilities | test_command_utils.py |
Rebuild After Changes
Section titled “Rebuild After Changes”-
Python — Editable mode (
make install), so changes apply immediately. No reinstall needed. -
Node.js — Runs directly from
node_ui/. No build step. Runcd node_ui && npm installif you add new npm dependencies. -
Rust — Must rebuild after changes:
Terminal window make aichat-search-install # aichat-search binarymake lmsh-install # lmsh binary
See Also
Section titled “See Also”- Development overview — architecture and setup instructions
- Make Commands — full list of build and install targets