Trying to run a simple test on mingwX64 and gettin...
# kotlin-native
b
Trying to run a simple test on mingwX64 and getting this weird error
Copy code
Cause: cannot assign instance of java.util.Collections$EmptyList to field java.lang.StackTraceElement.moduleVersion of type java.lang.String in instance of java.lang.StackTraceElement
The test
Copy code
import kotlin.test.Test
import kotlin.test.assertEquals

class TestMe {
   @Test
   fun shouldTest(){
      assertEquals("test", "test");
   }
}
Any pointers?
r
Sounds like a compiler or gradle issue from the presence of the jvm classes. Do you have a full stacktrace?
b
No, that's the problem. Very little info is printed and test reports are not written. I'll see if I can squeeze something more of it later today.
I suspect it's related to cinterops that my main sourceSets have, as it works after removing them
r
I ran into truncated error reports, try:
Copy code
tasks.withType(AbstractTestTask::class.java).configureEach {
    testLogging {
        showExceptions = true   // It is true by default. Set it just for explicitness.
        exceptionFormat = TestExceptionFormat.FULL
    }
}
and running gradle with
--stacktrace
. If that doesn't work maybe try debugging the gradle task? It usually picks up compiler errors if I set
-Dkotlin.compiler.execution.strategy="in-process"
👌 1
b
Turns out you can just run ./test.exe manually for a full test log (I wish it'd show up in gradle logs too). That revealed that my issue was simply missing ddl on the path.