Skip to content

[CI] Add CI gate for agentsight: require unit test coverage >= 80% #836

@chengshuyi

Description

@chengshuyi

Background

Currently, the agentsight module lacks a CI quality gate for unit test coverage. As the codebase grows, it is important to maintain a minimum level of test coverage to ensure code quality and prevent regressions.

Proposal

Add a CI check that enforces a minimum unit test coverage threshold of 80% for the agentsight module.

Requirements

  • Integrate a coverage measurement tool into the CI pipeline (e.g., coverage.py, codecov, or equivalent)
  • The CI pipeline should fail if the agentsight module's unit test coverage drops below 80%
  • Coverage reports should be generated and accessible from CI run artifacts
  • The threshold should be configurable to allow future adjustments

Acceptance Criteria

  • CI pipeline includes a coverage check step for agentsight
  • Build fails when coverage < 80%
  • Coverage report is visible in CI results
  • Documentation updated to reflect the new quality gate

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions