Skip to content

Add WinUI test project for tray app coverage #43

Closed

Description

@shanselman

Problem

All tests currently live in OpenClaw.Shared.Tests, which only covers the shared library. There is zero test coverage for WinUI-specific code:

  • SettingsWindow load/save logic
  • StatusDetailWindow status rendering
  • GlobalHotkeyService registration/lifecycle
  • NotificationHistoryWindow display logic
  • ActivityStreamService filtering and updates
  • TrayMenuWindow positioning calculations
  • Menu building logic in App.xaml.cs
  • Deep link / URI activation parsing

Proposed approach

Create tests/OpenClaw.Tray.WinUI.Tests/ with:

  • Unit tests for testable logic (extract pure functions where needed)
  • Settings round-trip tests (save → load → verify)
  • Status icon/color mapping tests
  • Activity stream filtering tests
  • Deep link parsing tests
  • Menu item generation tests

Some UI code may need refactoring to separate testable logic from UI concerns (e.g., extract ConnectionStatus → display string mapping into a helper).

Why this matters

Activity

  1. added
    enhancement
    on Mar 17, 2026
  2. added 2 commits that reference this issue on Mar 17, 2026
    116e687
    a25ddfa
  3. added a commit that references this issue on Mar 17, 2026
    bc140e9
  4. locked as resolved and limited conversation to collaborators on May 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions