[#108] Add tests for compaction, logger, loop, ollama plugins #115

Merged
k9ert merged 1 commit from story-108 into main 2026-02-26 16:14:10 +00:00
Collaborator

Closes #108

Changes

78 new tests across 4 plugins:

Plugin Tests Key Coverage
Compaction 16 Token estimation, history transform, fallback summary
Logger 28 Level filtering, stderr output, color, all extension hooks
Loop 15 AggregatedToolProvider (aggregation, routing, errors)
Ollama 19 Chat (success, tool calls, errors), models, generate

Verification

  • 616 passed, 1 skipped, 0 failed
  • ruff check cobot/ — all passed
  • ruff format --check cobot/ — all formatted
Closes #108 ## Changes 78 new tests across 4 plugins: | Plugin | Tests | Key Coverage | |--------|-------|--------------| | Compaction | 16 | Token estimation, history transform, fallback summary | | Logger | 28 | Level filtering, stderr output, color, all extension hooks | | Loop | 15 | AggregatedToolProvider (aggregation, routing, errors) | | Ollama | 19 | Chat (success, tool calls, errors), models, generate | ## Verification - 616 passed, 1 skipped, 0 failed - `ruff check cobot/` — all passed - `ruff format --check cobot/` — all formatted
[#108] test: add tests for compaction, logger, loop, ollama plugins
All checks were successful
CI / lint (pull_request) Successful in 10s
CI / test (3.11) (pull_request) Successful in 23s
CI / test (3.12) (pull_request) Successful in 25s
CI / test (3.13) (pull_request) Successful in 25s
E2E Tests / e2e (pull_request) Successful in 15s
CI / build (pull_request) Successful in 7s
048bf98a12
78 new tests:
- Compaction (16): creation, meta, config, token estimation, transform
  history (short/under limit/compaction with fallback summary), lifecycle
- Logger (28): creation, meta, config, log level filtering, log output,
  colorize, extension points (message/llm/tool/error hooks), lifecycle
- Loop (15): creation, meta, config, AggregatedToolProvider (aggregation,
  routing, unknown tool, restart_requested, provider error), lifecycle
- Ollama (19): creation, meta, config (host/model/env/trailing slash),
  chat (success, tool calls, connect error, custom model), list models,
  generate, lifecycle
k9ert approved these changes 2026-02-26 16:13:59 +00:00
k9ert merged commit 84a944a88b into main 2026-02-26 16:14:10 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
ultanio/cobot!115
No description provided.