- Checkout common-test-fails-in-IDE
- Open project and import gradle main module (auto import whole project)
- Run
SampleTest.kt
via context menu - Error: No JDK specified
Temporary fix:
- Configure JDK as module SDK (instead of Kotlin SDK)
- However, any gradle-refresh will restore the old setting (Kotlin SDK)
- Checkout common-test-not-runnable-in-IDE
- Open project and import gradle main module (auto import whole project)
- Open context menu of
SampleTest.kt
: no run-option available
Temporary fix:
- Add a test file to the JVM module (checkout common-test-fails-in-IDE)
- Now the run-option is available for the JVM test file as well as the common test file
Problem 3: common test function and class reported as "missing documentation" in IntelliJ IDEA 2018.1.6
- Checkout common-test-missing-doc-warning
- Open project and import gradle main module (auto import whole project)
- Open file
SampleTest.kt
: There are 3 inspection warnings- The class is missing documentation
- The test-method is missing documentation
- The test-method should not contain underscores
- Open file
SampleJvmTest.kt
: No inspection warnings at all though similar content