Skip to content

v1.6.55 Expand Core API backend test coverage baseline#231

Open
roncodes wants to merge 368 commits into
mainfrom
dev-v1.6.55
Open

v1.6.55 Expand Core API backend test coverage baseline#231
roncodes wants to merge 368 commits into
mainfrom
dev-v1.6.55

Conversation

@roncodes

@roncodes roncodes commented Jul 18, 2026

Copy link
Copy Markdown
Member

Summary

This PR completes the Core API backend full-coverage campaign on dev-v1.6.55.

Latest verified coverage baseline:

  • Line coverage: 100.00% (19,872/19,872 statements)
  • Method coverage: 100.00% (2,569/2,569 methods)
  • Fully covered class coverage: 100.00% (393/393 classes)
  • Touched class coverage: 100.00% (393/393 classes executed at least once)

The generated Clover report includes classes=393 but omits the coveredclasses metric, so the coverage summary derives fully covered class coverage from per-class statement metrics and separately reports touched classes.

Coverage Work

  • Expanded controller and API contract coverage across auth, user, company, IAM metrics/search, settings, reports, templates, files, notifications, comments, channels, onboard, lookup, schedules, middleware, and webhook paths.
  • Expanded reporting coverage for query validation, conversion, exporting, error handling, schema registration, computed columns, and execution failure contracts.
  • Expanded service and support coverage for scheduling, template rendering, file resolution, SMS routing/providers, two-factor auth, telemetry, socket cluster, SQL dumping, API model cache, notification registry, data purging, and utility helpers.
  • Expanded model and trait coverage for user/company membership behavior, scheduling models, chat models, settings, templates, reports, API model/controller behavior, custom fields, policies, lifecycle traits, internal ids, and API credential tracking.
  • Added focused console command coverage for database creation, permissions, purge, backup trimming, recovery, migrate sandbox, and sync sandbox behavior.
  • Added narrow coverage ignores only for defensive or unreachable framework/runtime fallback paths after validating the runtime contract.

Class Coverage Fix

  • Fixed the class coverage summary issue where Clover omitted coveredclasses, which previously caused class coverage to appear as 0.00%.
  • The summary now reports:
    • fully covered class coverage, derived from per-class statement metrics
    • touched class coverage, showing whether each class executed at least once

Validation

  • PATH=/Users/ron/.asdf/shims:$PATH /usr/local/bin/composer lint
  • git diff --check
  • git diff --cached --check
  • XDEBUG_MODE=coverage /Users/ron/.asdf/shims/php /usr/local/bin/composer coverage:baseline
  • /Users/ron/.asdf/shims/php scripts/coverage-summary.php coverage/clover.xml

Full coverage run result:

  • 1,326 tests passed
  • 9,638 assertions
  • 25 deprecated notices
  • 6 warnings

Raw Clover uncovered-statement scan result:

  • No uncovered statements.

roncodes added 30 commits July 26, 2026 02:15
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.

1 participant