Zum Hauptinhalt springen

Erweiterungsideen: Test-Audit (Audit 2026-02-18)

Inventar: 212 Test-Dateien, ~1.501 Test-Cases (871 Feature + 630 Unit).


Coverage-Lücken

BereichTotalGetestetCoverageFehlende Items
Jobs211990%RetryInactiveProfileScrape, ResolveRelatedChannelRelationship
Commands564071%16 Commands (u.a. profiles:retry-inactive, google:sync-api-usage, watchers:backfill-admin-workspace)
Livewire Components544889%Admin/Pages/Edit, Admin/UpdateStatus/InstagramUpdateStatus, Explore/CategoryCloud, Explore/ProfileGrid, Explore/TrendingSection, Settings/TwoFactor
Admin Components2211 dediziert68%7 ohne dedizierte Tests (AiEnhancements, ExploreStatus, ImportStatus, Statistics, UpdateStatus, Pages/Index, Pages/Edit)
Controllers201995%QueueAiEnhancementController
Middleware9667%EnsureCurrentWorkspace, EnsureWorkspaceFromRoute, VerifyHealthToken
Mail8450%AdminTestMail, ErrorMonitorAnomalyAlert, ErrorMonitorWeeklyReport, FeedbackReport
Models565191%AnnouncementRead, DailyScrapeProgress, DatabaseNotification, DbSlowQueryLog, NotificationStat
Events/Listeners1616100%

Kritische Findings

ItemBeschreibungPriorität
DashboardRollupTest ::bigint ohne SQLite-Guardtests/Feature/DashboardRollupTest.php:109 nutzt ::bigint Cast ohne markTestSkipped — bricht unter SQLite in-memory.Hoch
2 Jobs komplett ohne TestsRetryInactiveProfileScrape (Scheduled) und ResolveRelatedChannelRelationship haben null Test-Coverage.Hoch
3 Middleware ohne TestsEnsureCurrentWorkspace, EnsureWorkspaceFromRoute, VerifyHealthToken sind sicherheitsrelevant.Hoch
16 ungetestete CommandsBesonders Scheduled Commands: profiles:retry-inactive, google:sync-api-usage, notifications:rollup-stats, server:check-alerts, watchers:backfill-admin-workspace.Mittel
4 Mail-Klassen ohne TestsAdminTestMail, ErrorMonitorAnomalyAlert, ErrorMonitorWeeklyReport, FeedbackReport.Mittel
3 Jobs ohne Failure-TestsProcessWatcherImportRun, SendNotificationEmail haben nur Happy-Path Tests.Niedrig
ContactLinksTest Namens-KollisionContactLinksTest.php existiert in 2 VerzeichnissenErledigt (2026-03-05): Konsolidiert in tests/Feature/Livewire/Watchers/ContactLinksTest.php.Niedrig

Location: tests/Feature/, tests/Unit/