Skip to content

[TEST] Increase coverage thresholds from 2-4% to industry-standard 40-70% #110

@Delqhi

Description

@Delqhi

Problem

Coverage thresholds in frontend/vitest.config.js are far too low:

thresholds: {
  lines: 2,
  functions: 4,
  branches: 2,
  statements: 2
}

Actual coverage: 14.73% lines, 20.91% branches, 16.69% functions, 13.97% statements

These thresholds were set as a temporary workaround (PR #85) with autoUpdate: true to prevent CI from failing. This was acceptable as a starting point, but the thresholds should be raised incrementally.

Reference Plan

docs/COVERAGE-THRESHOLDS.md outlines a 4-phase plan:

  • Phase 1: 2% → realistic baseline (current)
  • Phase 2: 10% — quick wins in critical components
  • Phase 3: 25% — core business logic covered
  • Phase 4: 40% — production-ready (industry standard)

Acceptance Criteria

  • Move to Phase 2 (10% lines, 10% branches) — add tests for critical paths (auth, navigation, data display)
  • Remove autoUpdate: true once at Phase 2
  • Each phase has a documented set of components/functions to cover
  • CI runs coverage check on every PR

Aufwand

~1-2 days for Phase 2

Related

Metadata

Metadata

Assignees

No one assigned

    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