Skip to content

Improve test coverage across the codebase #233

@drernie

Description

@drernie

Current Coverage Status

Our test coverage has fallen below the thresholds we set. Current coverage levels:

  • Statements: 59.02% (threshold: 70%)
  • Branches: 48.4% (threshold: 65%)
  • Lines: 59.07% (threshold: 70%)
  • Functions: 63.75% (threshold: 70%)

Areas Needing Coverage

High Priority (Very Low Coverage)

  • lib/wizard/* files: 5.56% overall
    • phase3-parameter-collection.ts: 2.91%
    • phase4-validation.ts: 2.85%
    • phase1-catalog-discovery.ts: 8.16%
    • phase2-stack-query.ts: 9.09%
    • phase6-integrated-mode.ts: 7.89%
    • phase7-standalone-mode.ts: 8.92%
  • lib/providers/*: 25% overall
    • node-http-client.ts: 5.26%
    • exec-sync-aws-provider.ts: 47.05%
  • lib/utils/config.ts: 18.51%

Medium Priority (Below 85%)

  • lib/s3-bucket-validator.ts: 81.33%
  • bin/commands/infer-quilt-config.ts: 70.33%
  • bin/commands/install.ts: 71.62%

Action Items

  1. Add comprehensive tests for the wizard phases (phase1-phase7)
  2. Add tests for provider implementations
  3. Improve coverage for config utilities
  4. Add integration tests for the complete setup flow
  5. Add edge case and error path testing

Temporary Measure

Thresholds have been temporarily lowered to current levels to unblock CI, but should be gradually increased as coverage improves.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions