test(activity): add integration tests for full pipeline #328
No reviewers
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
thwap/steeper!328
Loading…
Reference in a new issue
No description provided.
Delete branch "phase08-integration-tests"
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?
What
Add end-to-end integration tests, completing #278.
New tests
user-a→user-b→user-a. Verifies each context has independent cache, renders differ, and cache is reused on switch-back.New mock
multiPageClient— supports proper pagination (offset/limit calculation) for simulating multi-page API responses.Coverage
99 test functions across 9 files in the activity package.
References: #278, #275, #276, #277
Testing
go test -race ./...— all passReview
Result: Approved — no blocking issues.
Summary: Adds
internal/activity/integration_test.gowith 3 end-to-end integration tests.TestIntegrationFullPipelineexercises 6 events across 3 days, verifying cache persistence and all sparkline types.TestIntegrationViewSwitchCacheReusevalidates independent context caches and render differences.TestIntegrationEmptyThenDatatests the empty-to-populated transition. NewmultiPageClientmock supports offset/limit pagination +sincefiltering. ROADMAP2.md updated.Checklist:
go test -racepasses