test: add TDD bug-capture test for #1079 — project context set missing flag #1130
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
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
cleveragents/cleveragents-core!1130
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "tdd/m5-context-exec-env-priority-flag"
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
This PR adds TDD bug-capture tests for bug #1079 (
project context setmissing--execution-env-priorityflag). Per the Bug Fix Workflow in CONTRIBUTING.md, the first step in fixing any bug is to write a test that proves the bug exists.What was done
Behave unit tests (6 scenarios in
features/project_context_set_exec_env_priority.feature):project context set --execution-env-priority overridewith--execution-environmentshould succeed and persistproject context set --execution-env-priority fallbackwith--execution-environmentshould succeed and persist--execution-env-prioritywithout--execution-environmentshould be rejectedfallbackwhen only--execution-environmentis specified--execution-env-priorityvalue should be rejectedproject context showshould reflect persistedexecution_env_priorityin JSON outputRobot integration tests (3 test cases in
robot/project_context_set_exec_env_priority.robot):All tests are tagged
@tdd_bug @tdd_bug_1079 @tdd_expected_fail. The underlying assertions fail (confirming the bug exists —--execution-env-priorityis "No such option"), and the@tdd_expected_failtag inverts the result so CI passes.Bug confirmed
The
context_set()function incleveragents.cli.commands.project_contextdoes not acceptexecution_env_priorityas a parameter. The specification (§Execution Environment Routing, precedence table) requires this flag at precedence level 2 for project-level execution environment priority control.Quality gates
nox -s lintnox -s typechecknox -s unit_testsnox -s integration_testsnox -s coverage_reportCloses #1100
Review: APPROVED
TDD tags correct. Both Behave AND Robot Framework tests present — one of only 3 TDD PRs in the batch with dual-framework coverage. Step definitions fully implemented. Good CHANGELOG.
Minor Note
Uses per-scenario
@tdd_expected_failtagging rather than feature-level — functionally fine but inconsistent with other TDD PRs in the batch that tag at the feature level. Not blocking.Self-QA status: QA process was started but interrupted before completing. The PR has not yet been reviewed by the self-QA loop. Manual review recommended.
61cd3b236e5adfa8e3d9New commits pushed, approval review dismissed automatically according to repository settings
db5f93bb8d62ad5ab091Review: test: add TDD bug-capture test for #1079 — project context set missing flag
Approved. One of the most comprehensive TDD PRs in this batch.
Minor Note
Missing CHANGELOG.md entry — most other TDD PRs include one. Consider adding for consistency.
What's Good
_SafeSessionwrapper pattern and in-memory DB setup are well-structured.@tdd_expected_failand@tdd_bugtags.62ad5ab091b5c65f4356New commits pushed, approval review dismissed automatically according to repository settings
b2b6dbd2daf0d7456b7d