Skip to content

Add test coverage reporting and enforce minimum threshold in CI #602

Description

@Abdulazeem-code

Description

There is no coverage reporting. Contributors can merge PRs that reduce test coverage without any visibility.

Proposed Solution

Configure Jest with --coverage and set minimum thresholds (e.g., 70% lines, 60% branches). Add a CI step that fails the build if coverage drops.

Acceptance Criteria

  • Jest configured with coverage collection
  • Coverage thresholds set in package.json or jest.config
  • CI pipeline fails on coverage regression
  • Coverage report uploaded as build artifact

Suggested Implementation Areas

package.json, .github/workflows/

Impact

Prevents gradual test coverage erosion and ensures new code is adequately tested.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions