feat(qa): enforce coverage >=97% in CI #214

Closed
opened 2026-02-22 23:40:11 +00:00 by freemo · 1 comment
Owner

Metadata

  • Commit: feat(qa): enforce coverage >=97% in CI
  • Branch: feature/q0-min-coverage

Subtasks

  • Ensure nox -s coverage_report fails below 97% and emits a single-line error message suitable for CI parsing. (COVERAGE_THRESHOLD constant + session.error with CI-parseable summary)
  • Update CI summary output (or job annotations) to surface the 97% threshold failure line clearly. (added "Surface coverage summary" step in CI that reads build/coverage.json)
  • Update docs/development/testing.md with the 97% coverage requirement and a sample failure output. (created docs/development/testing.md with full testing guide)
  • Tests (Behave): Add a scenario that parses coverage config and asserts threshold >=97%. (features/coverage_threshold_enforcement.feature, 11 scenarios)
  • Tests (Robot): Add a Robot test that runs nox -s coverage_report and asserts pass/fail behavior. (robot/coverage_threshold.robot, 6 test cases)
  • Tests (ASV): Add benchmarks/coverage_report_bench.py for coverage report runtime baseline. (benchmarks/coverage_report_bench.py, 4 benchmarks)
  • Run nox (all default sessions, including benchmark). (lint 0 findings, typecheck 0 errors, 2235 unit scenarios passed, 211 integration tests passed)
  • Verify coverage >=97% via nox -s coverage_report. (97.5% coverage, threshold 97%)

Section: ### Section 0: Quality Automation Setup [WORKSTREAM Q - Brent Lead]
Status: Completed

## Metadata - **Commit**: `feat(qa): enforce coverage >=97% in CI` - **Branch**: `feature/q0-min-coverage` ## Subtasks - [x] Ensure `nox -s coverage_report` fails below 97% and emits a single-line error message suitable for CI parsing. (COVERAGE_THRESHOLD constant + session.error with CI-parseable summary) - [x] Update CI summary output (or job annotations) to surface the 97% threshold failure line clearly. (added "Surface coverage summary" step in CI that reads build/coverage.json) - [x] Update `docs/development/testing.md` with the 97% coverage requirement and a sample failure output. (created docs/development/testing.md with full testing guide) - [x] Tests (Behave): Add a scenario that parses coverage config and asserts threshold >=97%. (features/coverage_threshold_enforcement.feature, 11 scenarios) - [x] Tests (Robot): Add a Robot test that runs `nox -s coverage_report` and asserts pass/fail behavior. (robot/coverage_threshold.robot, 6 test cases) - [x] Tests (ASV): Add `benchmarks/coverage_report_bench.py` for coverage report runtime baseline. (benchmarks/coverage_report_bench.py, 4 benchmarks) - [x] Run `nox` (all default sessions, including benchmark). (lint 0 findings, typecheck 0 errors, 2235 unit scenarios passed, 211 integration tests passed) - [x] Verify coverage >=97% via `nox -s coverage_report`. (97.5% coverage, threshold 97%) **Section**: ### Section 0: Quality Automation Setup [WORKSTREAM Q - Brent Lead] **Status**: Completed
freemo added this to the (deleted) milestone 2026-02-22 23:40:11 +00:00
freemo modified the milestone from (deleted) to v3.0.0 2026-02-23 00:07:09 +00:00
Author
Owner

Implementation Notes — Coverage Threshold Enforcement

2026-02-13: Task Q0-min-coverage In Progress - Coverage Threshold Enforcement

  • Enhanced coverage_report nox session: COVERAGE_THRESHOLD = 97 constant, generates HTML/XML/JSON reports before checking threshold, emits CI-parseable summary line.
  • Created docs/development/testing.md (180+ lines): full testing guide covering unit (Behave), integration (Robot), benchmarks (ASV), and coverage.
  • Created features/coverage_threshold_enforcement.feature (11 scenarios).
  • Verification: 2235 unit scenarios passed, 211 integration tests passed, 97.5% coverage.

(Migrated from docs/implementation-notes.md)

## Implementation Notes — Coverage Threshold Enforcement **2026-02-13**: Task Q0-min-coverage In Progress - Coverage Threshold Enforcement - Enhanced `coverage_report` nox session: `COVERAGE_THRESHOLD = 97` constant, generates HTML/XML/JSON reports before checking threshold, emits CI-parseable summary line. - Created `docs/development/testing.md` (180+ lines): full testing guide covering unit (Behave), integration (Robot), benchmarks (ASV), and coverage. - Created `features/coverage_threshold_enforcement.feature` (11 scenarios). - Verification: 2235 unit scenarios passed, 211 integration tests passed, 97.5% coverage. *(Migrated from `docs/implementation-notes.md`)*
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.

Blocks
#349 Epic: Quality Automation Setup (Q0)
cleveragents/cleveragents-core
Depends on
#50 feat(qa): enforce coverage >=97% in CI
cleveragents/cleveragents-core
Reference
cleveragents/cleveragents-core#214
No description provided.