Skip to content

Add-Vitest-coverage-thresholds-to-the-CI-workflow#351

Open
MaryammAli wants to merge 1 commit into
Lead-Studios:mainfrom
MaryammAli:Add-Vitest-coverage-thresholds-to-the-CI-workflow
Open

Add-Vitest-coverage-thresholds-to-the-CI-workflow#351
MaryammAli wants to merge 1 commit into
Lead-Studios:mainfrom
MaryammAli:Add-Vitest-coverage-thresholds-to-the-CI-workflow

Conversation

@MaryammAli
Copy link
Copy Markdown
Contributor

Add Vitest Coverage Thresholds to CI Workflow

Overview

This PR enhances the CI pipeline by enabling Vitest coverage reporting and enforcing minimum code coverage thresholds. This ensures that future changes maintain a baseline level of test coverage and helps prevent coverage regressions.

Changes Made

  • Added the --coverage flag to the Vitest test script used in CI.

  • Configured coverage threshold enforcement in vitest.config.

  • Enabled validation for:

    • Line coverage
    • Branch coverage
    • Function coverage
  • Updated CI workflow to fail when coverage requirements are not met.

Coverage Thresholds

The following minimum thresholds have been configured:

  • Lines: 60%
  • Branches: 60%
  • Functions: 60%

These thresholds provide an initial quality baseline and can be increased as test coverage improves over time.

Acceptance Criteria

  • Vitest runs with coverage enabled in CI.

  • CI fails if coverage falls below configured thresholds.

  • Coverage thresholds are set to at least:

    • 60% line coverage
    • 60% branch coverage
    • 60% function coverage

Benefits

Add-Vitest-coverage-thresholds-to-the-CI-workflow
@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented May 30, 2026

@MaryammAli 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.

FE-174 Add Vitest coverage thresholds to the CI workflow

1 participant