hello, I'm fairly new to Kotlin and I'm working on...
# announcements
l
hello, I'm fairly new to Kotlin and I'm working on a Kotlin project that uses Gradle. When running a simple Kotlin Unit test, Intellij Idea runs the gradle
test
task rather then executing the test directly (like in a Java project). Is there a way to run the test directly in Intellij?
r
Yes, you can change the default at
Preferences | Build, Execution, Deployment | Build Tools | Gradle
Run tests using:
l
Thanks! fixed
🙌 1
my google-fu failed me this time
one more question: if I run the same test twice - now using the settings you suggested, intellij seems to rebuild the current project every time, which takes some time. Any way to speed this up?
r
Ctrl-F5 (rerun) instead of run, from inside the run tool window. it should not build if there were no changes made since the last run.