Files
cleveragents-core/features
aditya 97920678b9 test(estimation): harden CI test assertions and restore coverage to 97%
Fix unit test and integration test failures on Forgejo CI caused by
Rich/Click text wrapping in narrow terminal environments. The assertion
for "--no-estimate cannot be used with --estimation-actor" was split
across lines when COLUMNS was small, breaking exact substring checks.

- Normalize whitespace before assertion in cli_extensions_steps.py so
  the check is resilient to line wrapping regardless of terminal width.
- Set COLUMNS=240 in robot/helper_plan_cli_spec.py to give CLI
  subprocesses a consistent wide terminal, preventing Rich from
  reflowing output mid-assertion.
- Add 16 new BDD scenarios to estimation_coverage.feature exercising
  previously-uncovered estimation branches: validation constraints
  (max_length, min_length, frozen model), EstimationActorProtocol
  runtime check, all three exception handler paths in estimate_plan,
  parse_estimation_report generic error path, serialization of non-None
  values, EstimationError attribute preservation, and CLI dict / status
  detail rendering of estimation data.
- estimation_service.py coverage: 75% → 99% (only TYPE_CHECKING and
  Protocol stub lines remain uncovered).
- Overall coverage: 96.89% → 97.0%, meeting the project threshold.

All changes are scoped to estimation feature tests and the estimation
CLI assertion helpers introduced by this branch.

Refs: #209
2026-03-19 15:07:05 +00:00
..
2026-02-23 03:11:12 +00:00