Hello ! I have an issue with Kotest when I try to...
# kotest
d
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
It’s customary and helpful to include the error…
d
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
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
The folder is empty. I searched for all folder with "JsNode" but all are empty
k
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
~/.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