The headless forecast test failed from 2026-10-16 on because the panel read the real clock while its fixture fixes the time. - App: PanelWindow takes an optional TimeProvider (the system clock by default) and passes it to the pace bar, burn-up, peak and usage charts and every forecast label. The burn-up chart uses the panel's render time as now. - Tests: headless panels run on a fixed clock at fixture time, with a check before, at and after the forecast start. App and Core tests with fixed-date Claude events pin HistoryStore's clock, so the 60-day retention cannot drop them later. Closes #11
633 B
633 B
App tests
Hand-written fixtures only. xUnit v3 AOT with Microsoft.Testing.Platform.
Run dotnet test --project tests/FinalToken.App.Tests -c Release from the root.
View-model tests use public Core queries. Headless tests run on a dedicated UI thread with
Skia and HarfBuzz, exercise settings and popup actions, and save PNG screenshots outside
the repo at ../runs/shots/app. FINALTOKEN_SCREENSHOT_DIR overrides that path.
Popup expiry uses an injected TimeProvider; fire timers and pump the dispatcher instead of sleeping.
Pin panel clocks and HistoryStore retention clocks to fixture time. Reuse FixedClock for fixed-date tests.