Browser-hosted web suites: auto-detect a Chromium when CHROME_BIN is unset #130

Closed
opened 2026-08-26 14:39:06 +02:00 by thecrealm · 0 comments
Owner

D62's karma suites (katrix-store-indexeddb) fail on a dev host with 'no tests discovered' when CHROME_BIN is not exported, even with /usr/bin/chromium present — the karma launcher only honors the env var, and CI exports it explicitly. Low-cost DX fix: katrix.kmp-library-web (or the module) probes common binaries (chromium, chromium-browser, google-chrome{,-stable}) and sets CHROME_BIN for the test task when unset. Until then: CHROME_BIN=/usr/bin/chromium ./gradlew build.

D62's karma suites (katrix-store-indexeddb) fail on a dev host with 'no tests discovered' when CHROME_BIN is not exported, even with /usr/bin/chromium present — the karma launcher only honors the env var, and CI exports it explicitly. Low-cost DX fix: katrix.kmp-library-web (or the module) probes common binaries (chromium, chromium-browser, google-chrome{,-stable}) and sets CHROME_BIN for the test task when unset. Until then: CHROME_BIN=/usr/bin/chromium ./gradlew build.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
thecrealm/katrix#130
No description provided.