Skip to content

ci: add 70% test coverage gate for documents module (#753)#852

Open
Yash-Karakoti wants to merge 1 commit into
MettaChain:mainfrom
Yash-Karakoti:fix/issue-753-documents-coverage
Open

ci: add 70% test coverage gate for documents module (#753)#852
Yash-Karakoti wants to merge 1 commit into
MettaChain:mainfrom
Yash-Karakoti:fix/issue-753-documents-coverage

Conversation

@Yash-Karakoti

Copy link
Copy Markdown

ci: enforce 70% test coverage gate for documents module (#753)

Description

This PR introduces a dedicated CI gate to enforce a minimum test coverage of 70% for the documents module. This ensures that any future changes or hardening of the documents slice will not introduce regressions in test coverage, maintaining the reliability of the module.

Resolves Issue

Changes Made

  • Modified the CI pipeline (.github/workflows/ci.yml) to include a new, specific test step for the documents module.
  • Utilized the Jest CLI to isolate coverage collection to the src/documents directory using the --collectCoverageFrom flag.
  • Implemented a strict 70% threshold across statements, branches, functions, and lines via the --coverageThreshold argument.

Testing & Verification

  • The GitHub Actions CI pipeline will now automatically run this isolated coverage check on all Pull Requests targeting main and develop.
  • Reviewers can verify the successful execution by checking the test job logs in the Actions tab for this PR. If the coverage falls below 70%, the pipeline will fail and block the merge.

@drips-wave

drips-wave Bot commented Jun 29, 2026

Copy link
Copy Markdown

@Yash-Karakoti Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

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.

[C7] Add CI gate: documents module test coverage > 70%

1 participant