Running Kotlin Koans tests from Android Studio

Windows 10, Android Studio 3.0.
So I just cloned the Kotlin Koans relay from the master branch and tried to run the tests in two different ways:
1. Using the IDE, when I click the green arrow next to the testing method, I see:

Process finished with exit code 1
Class not found: "i_introduction._0_Hello_World.N00StartKtTest"Empty test suite.

2. And when I try to use the terminal as described in the Kotlin Koans Readme:

gradlew test --tests i_*

he gives me the conclusion:

:compileKotlin                                                                   
Using kotlin incremental compilation
Caught an exception trying to connect to Kotlin Daemon
java.lang.ClassNotFoundException: com.sun.tools.javac.util.Context

I saw a lot of suggestions that tools.jar might not be in the jdk folder, I use the built-in Android Studios jdk and is presented here. I also tried disabling deamons gradle - the result is the same.

+4
source share
1 answer
0

Source: https://habr.com/ru/post/1688975/


All Articles