Core integration test coverage #86
Labels
No labels
bug
devops
duplicate
enhancement
good first issue
next major release
next minor release
question
testing
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: lvl0/fedi-feed-router#86
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Add integration/feature tests for major untested areas of the application.
Context
The codebase has solid unit tests for models, jobs, and events, but lacks integration tests for controllers, flows, and service interactions. Current feature tests cover: jobs/events wiring, article validation listener, database connectivity, profile CRUD, API auth, and event dispatching. Major flows are untested end-to-end.
Untested Areas
Controllers (HTTP tests)
ArticlesController— index pagination, approve, reject, refreshFeedsController— CRUD + togglePlatformChannelsController— CRUD + toggle + account relationshipsPlatformAccountsController— CRUD + setActiveRoutingController— CRUD + toggle routesKeywordsController— CRUD scoped to routeSettingsController— get all, partial updateDashboardController— stats across periodsOnboardingController— status, complete, skip, resetPublishing Pipeline (E2E)
Services
RoutingValidationService— language mismatch detectionOnboardingService— status checks, cache clearingDashboardStatsService— period calculations with real dataParsers
Approach
RefreshDatabasefor isolationHttp::fake()and fixture files