Skip to content

Commit 6e7b9c8

Browse files
authored
test(cortex-cli): add comprehensive unit tests for CLI modules (#550)
Add unit tests across multiple cortex-cli modules to increase code coverage: - Command modules: acp_cmd, agent_cmd, alias_cmd, cache_cmd, compact_cmd, debug_cmd, feedback_cmd, lock_cmd, logs_cmd, mcp_cmd, models_cmd, plugin_cmd, shell_cmd, workspace_cmd - Core: lib.rs, cli/args, cli/handlers, completion_setup - Utilities: file, paths, session, wsl_paths - MCP: config, handlers, types, validation - Exec: jsonrpc Tests cover struct initialization, serialization/deserialization, validation logic, edge cases, and error handling.
1 parent eb1553c commit 6e7b9c8

29 files changed

Lines changed: 9636 additions & 6 deletions

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/cortex-cli/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,3 +87,4 @@ chrono = "0.4"
8787

8888
[dev-dependencies]
8989
serial_test = { workspace = true }
90+
tempfile = { workspace = true }

0 commit comments

Comments
 (0)