https://kotlinlang.org logo
h

Hamza

10/25/2018, 7:47 AM
hey, has anyone able to get junit 5 to work with a multiplatform project? I am using JUnit5 on the JVM to run the tests, and i have
use gradle runner
selected in my IDEA preferences. Whenever I try to run the tests though, I get the [included] error. [stacktrace mode enabled] When i try running
gradle jvmTest
though, it succeeds without any problems.
My Test Class:
My buil file
l

Liliia

10/25/2018, 9:12 AM
h

Hamza

10/25/2018, 9:37 AM
What are the alternatives? i’m trying to get some unit tests running, but kotlin-test doesn’t have some annotations i want to use
e

Evgeniy Zaharov

10/25/2018, 10:20 AM
with new gradle plugin I don’t know how to integrate junit5, but with old multiplatform gralde plugin, all works fine. See for example: https://github.com/alfa-laboratory/kgen-doc-tools/blob/master/build.gradle
h

Hamza

10/25/2018, 10:21 AM
yeah, but i don’t wanna go back to theold version
e

Evgeniy Zaharov

10/25/2018, 10:23 AM
it would be great if JB will support in new multiplatform plugin support for main popular developer tools for specific platform (like junit, spock etc)