Skip to content

fix(ci): Unit-Tests mit leerer Host-App starten #62

Closed

Description

@502Proxy

Seit dem Menüleisten-Symbol (#46/#56) hängt „Build & Tests (macOS)“ mit „The test runner hung before establishing connection“. #61 hat das nicht behoben.

Probe-Läufe auf dem aktuellen main (per workflow_dispatch):

Branch Änderung Ergebnis
probe/no-menubar ohne MenuBarExtra-Szene ✅
probe/test-host Tests starten eine leere Host-App ✅
probe/no-session-check ohne Stud.IP-Sitzungsprüfung beim Start ❌
design/module-sections Stand vor 1.12 ✅

Die MenuBarExtra-Szene verhindert also auf dem CI-Runner, dass die Test-Host-App fertig startet.

Lösung (Best Practice): Ein eigener @main-Einstieg startet unter XCTest eine leere App. Die Tests bauen sich ihre Objekte selbst, und Startarbeit (Datenbank, Sync, Netzwerk, Menüleiste) läuft beim Testen nicht mehr.

Offen: Bitte prüfen, ob die echte App mit Menüleisten-Symbol auf dem Mac normal startet.


Generated by Claude Code

Activity

  1. added this to the 1.12 milestone on Oct 28, 2026
  2. added
    bugSomething does not work as intended
    on Oct 28, 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

    bugSomething does not work as intended

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions