codeburn/mac/Tests/CodeBurnMenubarTests
Resham Joshi 454d836f6e
fix(menubar): surface CLI stdout/stderr on decode failure (#515) (#547)
* fix(menubar): surface CLI stdout/stderr on decode failure (#515)

A failed decode of the CLI menubar-json output threw an opaque
DataClientError.decode(error) that surfaced only "not valid JSON", hiding
whether stdout was empty or carried a non-JSON prefix (e.g. a stray Node
banner on stdout, the root cause in #515). Wrap it in a CLIDecodeFailure that
carries a bounded stdout snippet, the stdout byte count, and stderr, so
String(describing:) is self-diagnosing in logs and the UI.

* test(menubar): add missing codexCredits arg so the Swift test target compiles

Two tests built CurrentBlock without the codexCredits parameter added in #510,
so the Swift test target failed to compile (CI does not run the Swift tests, so
it went unnoticed). Add codexCredits: nil to both.
2026-06-22 01:33:41 +02:00
..
AppStoreRefreshRecoveryTests.swift fix(menubar): surface CLI stdout/stderr on decode failure (#515) (#547) 2026-06-22 01:33:41 +02:00
AppVersionTests.swift Normalize menubar version display 2026-05-11 11:21:39 -07:00
CapacityEstimatorTests.swift feat(mac): native Swift menubar app + one-command install 2026-04-17 16:55:56 -07:00
CLIDevinConfigTests.swift feat: add devin provider (#444) 2026-06-09 21:58:31 +02:00
CodexTerminalFailureTests.swift test(menubar): lock in Codex terminal-failure classification 2026-05-30 12:32:19 -07:00
ContributionHeatmapTests.swift fix(menubar-tests): add missing localModelSavings/savingsUSD args so swift tests compile (#465) 2026-06-09 21:56:13 +02:00
DataClientProcessTests.swift fix(menubar): surface CLI stdout/stderr on decode failure (#515) (#547) 2026-06-22 01:33:41 +02:00
MenubarPeriodSettingsTests.swift Add configurable menubar status period (#302) 2026-05-24 03:15:39 -07:00
MenubarStatusCacheTests.swift fix(menubar): surface CLI stdout/stderr on decode failure (#515) (#547) 2026-06-22 01:33:41 +02:00
UpdateCheckerTests.swift Harden menubar refresh and installer 2026-05-14 18:32:15 -07:00