Big Chungus
07/18/2021, 5:07 PMCause: 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
import kotlin.test.Test
import kotlin.test.assertEquals
class TestMe {
@Test
fun shouldTest(){
assertEquals("test", "test");
}
}
Any pointers?rnett
07/18/2021, 7:40 PMBig Chungus
07/18/2021, 7:41 PMBig Chungus
07/18/2021, 7:42 PMrnett
07/18/2021, 7:46 PMtasks.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"
Big Chungus
07/21/2021, 10:59 AM