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

Distractic

11/03/2023, 7:36 AM
Hello ! I have an issue with Kotest when I try to start the test in my kotlin multiplatform library. When I try to run test, on a Windows (my computer) or Linux (Github Actions), everything is good for JVM and native, but an error appears with Nodejs 18. The problem is that the error doesn't have a stacktrace. I don't think it's my code directly because without Kotest, the tests passed without error in all environment. Have you a way to fixed that ?
1
c

Chris Lee

11/03/2023, 8:06 AM
It’s customary and helpful to include the error…
d

Distractic

11/03/2023, 8:07 AM
I'm on my phone but I will send it once on computer
Nothing more ..
I will try to enable debug or stacktrace
No more detail in debug or stacktrace I'm using Gradle 8.4 and embedded Kotlin for the Kotlin version
I tried on my Linux computer (just in case), same than for CI/CD or Windows
k

Klitos Kyriacou

11/03/2023, 9:32 AM
Check your test output log, it's probably in the directory
target/surefire-reports
though I'm not familiar with NodeJS tests so they might be somewhere else.
d

Distractic

11/03/2023, 9:35 AM
The folder is empty. I searched for all folder with "JsNode" but all are empty
k

Klitos Kyriacou

11/03/2023, 9:39 AM
Can you try running the same
.gradle/nodejs/.../bin/node
command shown on the error message, with the appropriate arguments, manually on the command line?
d

Distractic

11/03/2023, 9:41 AM
~/.gradle/nodejs/node-v18.12.1-linux-x64/bin/node Welcome to Node.js v18.12.1. Type ".help" for more information. Do you know the argument to run kotest through nodejs ? 🤔
Found in --debug mode with grep command
Nested tests are not supported .. arf I didn't think this format is nested test
Copy code
context("") { test("..") }
Yes that works now (after remove the
context
)
👍 1
Thanks for your help
4 Views