Skip to content

Extract BearCLICore library and add test infrastructure#2

Merged
asabirov merged 1 commit into
main-forkfrom
add-test-infrastructure
Mar 28, 2026
Merged

Extract BearCLICore library and add test infrastructure#2
asabirov merged 1 commit into
main-forkfrom
add-test-infrastructure

Conversation

@asabirov
Copy link
Copy Markdown
Owner

@asabirov asabirov commented Mar 28, 2026

Summary

  • Extract core logic into a BearCLICore library target, keeping bcli as a thin executable entry point
  • Add BearCLITests test target with 18 unit tests covering models, cache operations, and codable round-trips
  • Add public access modifiers to all types/methods needed across module boundaries

Test plan

  • swift build succeeds
  • swift build -c release succeeds
  • swift test — 18 tests, 0 failures
  • bcli --help works with the built binary

Move core logic into a separate BearCLICore library target so it can be
imported by tests. Add initial test suite (18 tests) covering models,
cache operations, and codable round-trips.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@asabirov asabirov merged commit 3adcf1f into main-fork Mar 28, 2026
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