Skip to content

ci(coverage): improve CI coverage and configure .coveragerc#5736

Open
leseb wants to merge 5 commits intoogx-ai:mainfrom
leseb:improving-ci-coverage-and-configuring-.coveragerc
Open

ci(coverage): improve CI coverage and configure .coveragerc#5736
leseb wants to merge 5 commits intoogx-ai:mainfrom
leseb:improving-ci-coverage-and-configuring-.coveragerc

Conversation

@leseb
Copy link
Copy Markdown
Collaborator

@leseb leseb commented May 6, 2026

Summary

  • Remove */ogx/providers/* from .coveragerc omit list so provider code is included in coverage reports
  • Add fail_under = 53 threshold in .coveragerc to prevent coverage regressions
  • Configure pytest-cov via pyproject.toml addopts for a simpler, integrated test workflow
  • Simplify scripts/unit-tests.sh to use pytest-cov directly instead of coverage run

Test plan

  • CI unit tests pass with the new pytest-cov configuration
  • Coverage report is generated correctly in CI logs
  • Coverage threshold of 53% does not block existing tests

🤖 Generated with Claude Code

Remove the providers directory from the .coveragerc omit list to increase
coverage visibility. Add a fail_under threshold of 53% to prevent coverage
regressions. Switch the unit test script from coverage run to pytest-cov
for a simpler, more integrated workflow with coverage settings centralized
in pyproject.toml.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Sébastien Han <seb@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant