Skip to content

Add 15 activity-metrics edge-case tests for week/month bucketing and project tracking#778

Merged
selfcontained merged 1 commit into
mainfrom
agt_04418242206f/job-test-enforcer-78d6e626
Jul 16, 2026
Merged

Add 15 activity-metrics edge-case tests for week/month bucketing and project tracking#778
selfcontained merged 1 commit into
mainfrom
agt_04418242206f/job-test-enforcer-78d6e626

Conversation

@selfcontained

Copy link
Copy Markdown
Owner

Summary

  • Add 6 computeDailyStatus tests covering previously untested week and month granularity bucketing (ISO Monday starts, Sunday grouping, month-boundary separation, bucket key format)
  • Add 5 computeWorkingTimeByProject edge-case tests: multi-agent same-project accumulation, project-dir inheritance on null, mid-session project switches, rangeStart zero-duration exclusion, interleaved agents
  • Add 4 computeActivityStats tests: idle event session reset (parity with done), idle segment exclusion, custom event type accumulation, pre-range-only session exclusion from averages

Server test count: 2411 → 2426

Test plan

  • pnpm run check passes
  • pnpm run test — 2426 server tests pass, 200 web tests pass
  • pnpm run test:e2e — 168 E2E tests pass
  • Review agent verified all 15 assertions against source code

🤖 Generated with Claude Code

@selfcontained
selfcontained merged commit cba3486 into main Jul 16, 2026
1 check passed
@selfcontained
selfcontained deleted the agt_04418242206f/job-test-enforcer-78d6e626 branch July 16, 2026 02:21
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