bissell
05/20/2018, 6:46 AMkotlin.test
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.Testing started at 6:42 AM ...
6:42:31 AM: Executing tasks ':common:cleanTest :common:test --tests "myproject.serialization.JsonSerializationTest.testJsonSerialization"'...
:common:cleanTest
: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
: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)
common-jvm
in for common
in that Gradle command above, it executes the test fine, but obviously that's not an ideal solution