Skip to content

test(cli): cover command and session behavior - #94

Open
JackCuthbert wants to merge 1 commit into
feat/agentic-todo-managementfrom
test/cli-unit-coverage
Open

test(cli): cover command and session behavior#94
JackCuthbert wants to merge 1 commit into
feat/agentic-todo-managementfrom
test/cli-unit-coverage

Conversation

@JackCuthbert

Copy link
Copy Markdown
Owner

Summary

  • cover Citty command routing, generated help, output modes, usage failures, and authentication failures
  • cover persistent session storage paths, permissions, expiry, corruption, cookie renewal, and rejection
  • cover destructive confirmation and optimistic-concurrency retry and stop behavior
  • record the CLI unit boundary in the repository testing specification

Testing approach

These tests inject HTTP, prompt, and session-store boundaries and assert observable behavior rather than implementation shape. The future third PR will exercise one packaged executable critical path through separate Node processes, without repeating the unit-level error matrix.

Validation

  • bun run fmt
  • bun run lint (passes with existing repository warnings)
  • bun run typecheck
  • bun run knip
  • bun run docs:build
  • bun run test (775 tests)

Stack

@JackCuthbert
JackCuthbert force-pushed the test/cli-unit-coverage branch 2 times, most recently from 48bffc5 to 43efbb1 Compare September 8, 2026 12:10
@JackCuthbert
JackCuthbert force-pushed the test/cli-unit-coverage branch 2 times, most recently from 60e679a to 2e3d845 Compare September 8, 2026 12:21
@JackCuthbert
JackCuthbert marked this pull request as ready for review September 8, 2026 12:24
@JackCuthbert
JackCuthbert force-pushed the test/cli-unit-coverage branch from 2e3d845 to 1c86ca1 Compare September 8, 2026 12:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant