Skip to content

Commit

Permalink
Fix compiler plugin for K2 compiler (kotest#3800)
Browse files Browse the repository at this point in the history
Enable Kotest to be used with K2 compilation in Kotlin versions 1.8.10
up to at least 2.0.0-Beta1.

This avoids compilation errors
"java.lang.IllegalStateException: Cannot find
io.kotest.engine.TestEngineLauncher class reference".
  • Loading branch information
OliverO2 authored Dec 3, 2023
1 parent 527f3fa commit 89cf59b
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,12 @@ object EntryPoint {
// in JS we use promise() which ultimately calls into GlobalScope.promise on JS platforms
const val PromiseMethodName = "promise"

// the FQN for the class used to launch the MPP engine
const val TestEngineClassName = "io.kotest.engine.TestEngineLauncher"
/**
* the FQN for the class used to launch the MPP engine.
*
* This must be a string where packages are delimited by '/' and classes by '.', e.g. "kotlin/Map.Entry".
*/
const val TestEngineClassName = "io/kotest/engine/TestEngineLauncher"

// the method invoked to add specs to the launcher, must exist on TestEngineLauncher
const val WithSpecsMethodName = "withSpecs"
Expand Down

0 comments on commit 89cf59b

Please sign in to comment.