# multiplatform


05/20/2018, 6:46 AM
Is there some step I'm missing to get
unit tests in a common module to run in IDEA? The green arrows show up and seem clickable, but when I click them I get an error
No JDK specified
. If I change the common module's SDK to the JDK they will run, but this gets overwritten on any Gradle reimport. Will attach some details in a thread.
seems runnable:
but hits an error:
common main & test modules have invalid Kotlin SDK for some reason:
my current Gradle runner settings:
If I try to run using the Gradle Test Runner it fails saying it can't find the test tasks:
Copy code
Testing started at 6:42 AM ...
6:42:31 AM: Executing tasks ':common:cleanTest :common:test --tests "myproject.serialization.JsonSerializationTest.testJsonSerialization"'...

:common:compileJava NO-SOURCE
:common:compileKotlinCommon UP-TO-DATE
:common:processResources UP-TO-DATE
:common:classes UP-TO-DATE
:common:compileTestKotlinCommon UP-TO-DATE
:common:compileTestJava NO-SOURCE
:common:processTestResources UP-TO-DATE
:common:testClasses UP-TO-DATE
:common:test FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':common:test'.
> No tests found for given includes: [myproject.serialization.JsonSerializationTest.testJsonSerialization](filter.includeTestsMatching)
From the command line, if I sub
in for
in that Gradle command above, it executes the test fine, but obviously that's not an ideal solution