https://kotlinlang.org logo
#kotest
Title
# kotest
s

sam

09/10/2021, 12:23 PM
If anyone wants to try MPP support https://kotest.io/docs/framework/multiplatform.html
s

Sebastian Schuberth

09/10/2021, 12:36 PM
Ping @AJ Alt for clikt 🙂
s

sam

09/10/2021, 12:38 PM
good call, I should try a PR to see how it works against clickt.
p

Pitel

09/13/2021, 10:39 AM
s

sam

09/13/2021, 10:40 AM
What's the error ?
Still the same as in the ticket ?
p

Pitel

09/13/2021, 11:25 AM
Well, ther is no error.
Copy code
class KotestTest : StringSpec({
    "Does it work?" {
        true.shouldBeFalse()
    }
})
This should fail, right? But I get no failed test (
BUILD SUCCESSFUL
).
I'm running
./gradlew check
.
s

sam

09/13/2021, 11:30 AM
yeah that should fail, let me check my build
that's ./gradlew check
ok I added in the other parts of your build and it disappears too
Copy code
tasks.withType<org.jetbrains.kotlin.gradle.tasks.Kotlin2JsCompile> {
   kotlinOptions {
      freeCompilerArgs += "-Xir-property-lazy-initialization"
   }
}
This breaks it
p

Pitel

09/13/2021, 11:38 AM
Hmm, ok.
Yes, removing the lazy intialization makes it work.
s

sam

09/13/2021, 11:46 AM
Anton from the JB team put in that thread: P.S. Make sure 
-Xir-property-lazy-initialization
 is disabled
So I guess its rquired
2 Views