test(coverage): add Behave scenarios for remaining under-tested modules #447
No reviewers
Labels
No labels
auto/needs-reevaluation
controller-managed
auto/blocked-by-deps
auto/ci-timeout
auto/claimed-implementer
auto/claimed-merge
auto/claimed-reviewer
auto/driver-down
auto/invariant-violation
auto/last-attempt-tier-0
auto/last-attempt-tier-1
auto/last-attempt-tier-2
auto/last-attempt-tier-min
Automation Tracking
auto/needs-conflict-resolution
auto/needs-implementer
auto/postmortem
auto/ready-to-merge
auto/restart-throttled
auto/revert
auto/sentinel
auto/stale-inactivity
auto/unstable
Blocked
Bounty
$100
Bounty
$1000
Bounty
$10000
Bounty
$20
Bounty
$2000
Bounty
$250
Bounty
$50
Bounty
$500
Bounty
$5000
Bounty
$750
MoSCoW
Could have
MoSCoW
Must have
MoSCoW
Should have
Needs Feedback
Points
1
Points
13
Points
2
Points
21
Points
3
Points
34
Points
5
Points
55
Points
8
Points
88
Priority
Backlog
Priority
CI Blocker
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Signed-off: Owner
Signed-off: Scrum Master
Signed-off: Tech Lead
Spike
State
Completed
State
Duplicate
State
In Progress
State
In Review
State
Paused
State
Unverified
State
Verified
State
Wont Do
Type
Automation
Type
Bug
Type
Discussion
Type
Documentation
Type
Epic
Type
Feature
Type
Legendary
Type
Refactor
Type
Support
Type
Task
Type
Testing
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
#446 Improve unit test coverage for container, correction service, plan lifecycle, CLI, and database modules
cleveragents/cleveragents-core
Reference
cleveragents/cleveragents-core!447
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "test/improve-coverage-round2"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Adds Behave BDD feature files and step definitions targeting coverage gaps in six
under-tested modules:
container.py,correction_service.py,plan_lifecycle_service.py,plan.py(CLI),skill.py(CLI), andmodels.py(DB).This is the second round of coverage improvements following #418, exercising uncovered
lines, exception-handling paths, and partial branches to maintain the 97% coverage
threshold.
Changes
get_database_urlenv-var fallback, AI provider None path,cached container singleton,
override_providersedge casesexecute_revertandexecute_append_persistedUoW commit paths,InvalidPhaseTransitionErrorcustom message branch, non-reusable action archive, anderror_detailsmerge logic_print_lifecycle_planconditional rendering,
use_actionargument parsing, auto-resolve paths, legacywrappers, and validation error branches
add/remove/list/show format and error branches
to_domain/from_domainNone-field branches acrossSkillModel,SessionModel,ToolModel,LifecycleActionModel,LifecyclePlanModel,NamespacedProjectModel, andSessionMessageModelAll 302 features, 6503 scenarios, 28271 steps pass (
nox -e unit_tests). No productionsource code was modified.
Closes #446
Dependency link: PR #447 blocks issue #446 (issue #446 depends on this PR). Please
verify the Forgejo dependency is set with the correct direction per CONTRIBUTING.md.
CONTRIBUTING.md Compliance Review
Findings & Fixes Applied
Metadata Issues (Fixed via API)
Closes #446Type/Testing(not a standard label per CONTRIBUTING.md)Type/Taskv3.1.0(matching PR milestone)State/UnverifiedState/In Review(PR is already submitted)test/improve-coverage-round2500-Line Limit Violations (Fixed via commit
ac64bf08)Three step-definition files exceeded the CONTRIBUTING.md 500-line limit:
plan_cli_coverage_r2_steps.pyplan_cli_spec_print_r2_steps.py(402),plan_cli_commands_r2_steps.py(487),plan_cli_legacy_r2_steps.py(449)models_coverage_r2_steps.pymodels_skill_coverage_r2_steps.py(401),models_record_coverage_r2_steps.py(315),models_lifecycle_coverage_r2_steps.py(411)plan_lifecycle_coverage_r2_steps.pyplan_lifecycle_error_r2_steps.py(448),plan_lifecycle_transitions_r2_steps.py(214)Each original was replaced by focused feature/step pairs. All resulting files are under 500 lines. Scenario content and step definitions are preserved without functional changes.
Items Already Compliant (No Changes Needed)
CHANGELOG.mdupdated in the PRfreemo) already listed inCONTRIBUTORS.mdv3.1.0container_coverage_r2,correction_service_coverage_r2,skill_cli_coverage_r2) are all under 500 linesAction Items for Author
features/steps/, so no import changes should be needed)ac64bf085742ee7af7c942ee7af7c93a2b134f3c