Files
cleveragents-core/robot/coverage_threshold.robot
T
brent.edwards bb3c4ffaef fix(qa): resolve merge conflicts with master and fix coverage threshold test
Merged master into feature/q0-min-coverage. Resolved conflicts in:
- benchmarks/coverage_report_bench.py: combined AST and regex benchmarks
- docs/development/testing.md: merged both versions into comprehensive guide
- robot/coverage_threshold.robot: merged test cases from both branches
- implementation_plan.md: kept both Brent and Luis notes

Fixed coverage_threshold_config test that failed because it expected
a literal --fail-under=97 but our noxfile uses the COVERAGE_THRESHOLD
constant via f-string. Updated step to resolve the constant via AST.
2026-02-13 22:25:16 +00:00

47 lines
2.0 KiB
Plaintext

*** Settings ***
Documentation Coverage threshold enforcement tests
... Validates that coverage configuration and nox session are
... properly set up to enforce the 97% coverage requirement.
Resource ${CURDIR}/common.resource
Suite Setup Setup Test Environment
Suite Teardown Cleanup Test Environment
*** Test Cases ***
Noxfile Contains Coverage Threshold Constant
[Documentation] Verify COVERAGE_THRESHOLD = 97 is defined in noxfile.py
[Tags] coverage config
${content}= Get File ${WORKSPACE}/noxfile.py
Should Contain ${content} COVERAGE_THRESHOLD = 97
Pyproject Contains Coverage Run Section
[Documentation] Verify [tool.coverage.run] section exists in pyproject.toml
[Tags] coverage config
${content}= Get File ${WORKSPACE}/pyproject.toml
Should Contain ${content} [tool.coverage.run]
Pyproject Has Branch Coverage Enabled
[Documentation] Verify branch = true is in coverage.run config
[Tags] coverage config
${content}= Get File ${WORKSPACE}/pyproject.toml
Should Contain ${content} branch = true
Pyproject Coverage Source Includes Src
[Documentation] Verify src is in the coverage source list
[Tags] coverage config
${content}= Get File ${WORKSPACE}/pyproject.toml
Should Contain ${content} source = ["src"
Coverage Threshold Is 97 In Noxfile
[Documentation] Verify noxfile enforces 97% threshold via fail-under
[Tags] coverage config
${content}= Get File ${WORKSPACE}/noxfile.py
Should Contain ${content} --fail-under=
Testing Guide Documentation Exists
[Documentation] Verify docs/development/testing.md was created
[Tags] coverage docs
${testing_doc}= Set Variable ${WORKSPACE}/docs/development/testing.md
File Should Exist ${testing_doc}
${content}= Get File ${testing_doc}
Should Contain ${content} 97%