Declare web executable binaries for :shared so Compose UI tests bundle - #115
Merged
patrickunterwegs merged 2 commits intoAug 26, 2026
Merged
Conversation
Compose Multiplatform 1.12.0 registers a new checkComposeUiTestConfigurationFor<Target> task for every Kotlin/JS-IR target. It fails the build when the target's test compile classpath pulls in Compose UI (and with it Skiko) while the target declares no executable binary: the test output is then not bundled with webpack, so the Skiko runtime cannot be loaded and the browser tests may fail. :shared has Compose UI in commonMain, so its js and wasmJs test compilations depend on Skiko even though the tests themselves are plain kotlin.test. Neither target declared an executable binary, so :shared:allTests failed at :shared:checkComposeUiTestConfigurationForJs before any test ran. Add binaries.executable() to both web targets, as the compose*App modules already do. See https://youtrack.jetbrains.com/issue/CMP-4906 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01T69oYMwratF7AAA9ECZwpF
Member
Author
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Compose Multiplatform 1.12.0 registers a new
checkComposeUiTestConfigurationFor task for every Kotlin/JS-IR
target. It fails the build when the target's test compile classpath pulls
in Compose UI (and with it Skiko) while the target declares no executable
binary: the test output is then not bundled with webpack, so the Skiko
runtime cannot be loaded and the browser tests may fail.
:shared has Compose UI in commonMain, so its js and wasmJs test
compilations depend on Skiko even though the tests themselves are plain
kotlin.test. Neither target declared an executable binary, so
:shared:allTests failed at :shared:checkComposeUiTestConfigurationForJs
before any test ran.
Add binaries.executable() to both web targets, as the compose*App modules
already do. See https://youtrack.jetbrains.com/issue/CMP-4906
Co-Authored-By: Claude Opus 5 noreply@anthropic.com
Claude-Session: https://claude.ai/code/session_01T69oYMwratF7AAA9ECZwpF