UAT: Test coverage at 84.42% — below the required 97% minimum threshold #3841

Open
opened 2026-04-06 06:54:47 +00:00 by freemo · 0 comments
Owner

Metadata

  • Branch: fix/increase-test-coverage-to-97-percent
  • Commit Message: fix(tests): add missing Behave scenarios to bring coverage above 97%
  • Milestone: Backlog
  • Parent Epic: #3374

Background

The project specification and CONTRIBUTING.md require unit test coverage to be maintained at or above 97% at all times:

"Unit test coverage must be maintained at or above 97% at all times. This is verified using the nox -e coverage_report session."

The current coverage report (from htmlcov/index.html) shows coverage at 84.42%, which is 12.58 percentage points below the required minimum.

Evidence

From htmlcov/index.html:

<span class="pc_cov">84.42%</span>

The coverage report was generated by the existing htmlcov/ directory in the repository root.

Impact

This means approximately 12.58% of the production codebase has no test coverage at all. The nox -e coverage_report quality gate would fail if enforced.

Steps to Reproduce

# View the existing coverage report
open htmlcov/index.html
# Or check the status.json
cat htmlcov/status.json | python3 -c "import sys,json; d=json.load(sys.stdin); print('Coverage data available')"

Expected Behavior

Coverage must be ≥97% as verified by nox -e coverage_report.

Actual Behavior

Coverage is at 84.42%, 12.58 percentage points below the required threshold.

Subtasks

  • Identify all uncovered modules and lines via htmlcov/index.html
  • Add missing Behave scenarios in features/ directory to cover the gaps
  • Ensure all new scenarios follow BDD/Gherkin style (no pytest-style tests)
  • Run nox -e coverage_report and confirm coverage ≥ 97%
  • Run full nox suite and fix any errors
  • Submit PR and get it merged

Definition of Done

  • New Behave scenarios added to cover the missing 12.58% of code
  • nox -e coverage_report passes with coverage ≥97%
  • All new scenarios follow BDD/Gherkin style in features/ directory
  • No pytest-style tests introduced
  • All nox stages pass
  • Coverage >= 97%
  • PR merged

Backlog note: This issue was discovered during autonomous operation
on milestone v3.6.0. It does not block milestone completion and has been
placed in the backlog for human review and future milestone assignment.


Automated by CleverAgents Bot
Supervisor: UAT Testing | Agent: ca-new-issue-creator

## Metadata - **Branch**: `fix/increase-test-coverage-to-97-percent` - **Commit Message**: `fix(tests): add missing Behave scenarios to bring coverage above 97%` - **Milestone**: Backlog - **Parent Epic**: #3374 ## Background The project specification and CONTRIBUTING.md require unit test coverage to be maintained at or above **97%** at all times: > "Unit test coverage must be maintained at or above 97% at all times. This is verified using the `nox -e coverage_report` session." The current coverage report (from `htmlcov/index.html`) shows coverage at **84.42%**, which is **12.58 percentage points below** the required minimum. ## Evidence From `htmlcov/index.html`: ```html <span class="pc_cov">84.42%</span> ``` The coverage report was generated by the existing `htmlcov/` directory in the repository root. ## Impact This means approximately 12.58% of the production codebase has no test coverage at all. The `nox -e coverage_report` quality gate would fail if enforced. ## Steps to Reproduce ```bash # View the existing coverage report open htmlcov/index.html # Or check the status.json cat htmlcov/status.json | python3 -c "import sys,json; d=json.load(sys.stdin); print('Coverage data available')" ``` ## Expected Behavior Coverage must be ≥97% as verified by `nox -e coverage_report`. ## Actual Behavior Coverage is at 84.42%, 12.58 percentage points below the required threshold. ## Subtasks - [ ] Identify all uncovered modules and lines via `htmlcov/index.html` - [ ] Add missing Behave scenarios in `features/` directory to cover the gaps - [ ] Ensure all new scenarios follow BDD/Gherkin style (no pytest-style tests) - [ ] Run `nox -e coverage_report` and confirm coverage ≥ 97% - [ ] Run full `nox` suite and fix any errors - [ ] Submit PR and get it merged ## Definition of Done - [ ] New Behave scenarios added to cover the missing 12.58% of code - [ ] `nox -e coverage_report` passes with coverage ≥97% - [ ] All new scenarios follow BDD/Gherkin style in `features/` directory - [ ] No pytest-style tests introduced - [ ] All nox stages pass - [ ] Coverage >= 97% - [ ] PR merged > **Backlog note:** This issue was discovered during autonomous operation > on milestone v3.6.0. It does not block milestone completion and has been > placed in the backlog for human review and future milestone assignment. --- **Automated by CleverAgents Bot** Supervisor: UAT Testing | Agent: ca-new-issue-creator
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
cleveragents/cleveragents-core#3841
No description provided.