Skip to content

[WIP] Add multiplatform support for kotest variant#218

Draft
Copilot wants to merge 2 commits intomainfrom
copilot/v3-make-kotest-variant-multiplatform
Draft

[WIP] Add multiplatform support for kotest variant#218
Copilot wants to merge 2 commits intomainfrom
copilot/v3-make-kotest-variant-multiplatform

Conversation

Copy link
Copy Markdown

Copilot AI commented Mar 29, 2026

  • Make base module multiplatform (JVM + JS/Node.js)
    • Add okio as the cross-platform path/filesystem library
    • Move DeletionMode.kt, TestFiles.kt to commonMain (change java.nio.file.Path to okio.Path)
    • Rewrite DefaultTestFiles.kt as common code using okio, with expect/actual for synchronized access and OS-specific filename chars
    • Add jsMain implementations: JsNodeFileSystem, absolutize, invalidFileNameCharacters, platformFileSystem, synchronizedAccess
    • Add jvmMain implementations: absolutize, platformFileSystem, synchronizedAccess
    • Update base/build.gradle.kts for multiplatform
    • Move JVM tests to jvmTest, update for okio.Path (add OkioPathAssertions.kt, fix imports)
  • Make kotest module multiplatform (JVM + JS/Node.js)
    • Move KotestTestFilesAdapter.kt, testFiles.kt to commonMain
    • Add expect/actual for testScopeName() (uses qualifiedName on JVM, simpleName on JS)
    • Add JS integration test (jsTest/KotestTestFilesIntegrationSpec.kt)
    • Update kotest/build.gradle.kts for multiplatform
  • Update root build.gradle.kts for multiplatform publishing support
  • Fix 2 remaining JVM test failures:
    • retains existing scope directories when entering a scope - scope directory clearing logic
    • escapes '\' in a scope name if necessary - backslash path splitting on Linux
  • Run and verify JS tests pass

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI linked an issue Mar 29, 2026 that may be closed by this pull request
Copilot AI requested a review from jGleitz March 29, 2026 15:29
Copilot stopped work on behalf of jGleitz due to an error March 29, 2026 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make kotest variant multiplatform

2 participants