https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
q

qlitzler

10/31/2018, 3:30 PM
Hello, I am building a multiplatform library using Kotlin. The library should be usable by Kotlin user on the JVM (obviously), but also by Java developers. Because of this requirement, I need to setup a java unit test suite to be able to test how the library syntax will look like from Java. I am having troubling setting up a simple java test folder with a Junit dependency. My gradle file looks like this at the moment. Can someone point me towards the right direction ?
i

itnoles

10/31/2018, 9:47 PM
jvmTest folder
q

qlitzler

11/01/2018, 1:18 PM
I tried adding
implementation 'junit:junit:4.12'
In the jvmTest, but that doesn't work
i

itnoles

11/02/2018, 6:09 PM
it want you to use Kotlin Test Framework
2 Views