Skip to content

test health: findings for dispatch #114

@jongio

Description

@jongio

test health

  • internal/platform/shell.go - all OS-specific session launch functions (launchWindowsSession, launchDarwinSession, launchLinuxSession, launchWSLWindowsTerminal, wslToWindowsPath, platformLaunchSession) have 0% test coverage; launching sessions is the app's core action and is entirely untested
  • internal/tui/handlers.go - nine event handler functions have 0% coverage: handleSessionsChanged, handlePlanContent, handleWorkStatusQuickScanned, handleWorkStatusScanned, handleWorkStatusAIScanned, handleContinuationPlanCreated, handleAttentionTick, handleReindexLogPump, handleBackgroundColor; these cover work-status monitoring and reindex features
  • internal/data/chronicle.go:ChronicleReindex is only 39.6% covered - the reindex workflow that rebuilds the session index is critical but mostly untested
  • internal/tui/model.go - scanWorkStatusAICmd (10.3%), openStoreCmd (20.0%), and deepSearchCmd (43.5%) are near-zero coverage; these back the AI work-status analysis and store-open critical paths
  • internal/copilot/client.go:doAnalyze is only 20.7% covered and internal/copilot/tools.go:defineListRepositoriesTool is 56.2% covered; these are core Copilot API paths
  • internal/tui/components - three public methods have 0% coverage: StartChronicleReindex, SetActive (filterpanel), and SelectByID (sessionlist); SelectByID is used for deep-link navigation
  • internal/platform package overall coverage is 67.3% - the lowest of any package; isNerdFontInstalledDarwin and isNerdFontInstalledLinux are 0%, detectUnixShells is 34.8%, DefaultTerminal is 36.4%
  • internal/data/dbwatch_test.go:TestStop_TerminatesLoop uses bare time.Sleep(30ms) to synchronize goroutine startup and shutdown - this is a timing-dependent test pattern that can produce flaky results on slow or loaded CI machines
  • Race detector cannot be exercised (CGO_ENABLED=0 in this environment); concurrent code in chronicle.go (goroutine pumping PTY output), dbwatch.go (polling loop), and copilot client (retry goroutines) is never race-checked in CI

Automated analysis - 9 finding(s)

Metadata

Metadata

Assignees

No one assigned

    Labels

    automatedFiled by automated analysis

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions