Hi all, I have the kotest intellij plugin (<https:...
# kotest
m
Hi all, I have the kotest intellij plugin (https://github.com/kotest/kotest-intellij-plugin) installed but when I right click on the root of my project and run all the tests, they are run via Gradle rather than the kotest plugin. Have I missed a step to enable this?
If I set "Run test using" to "Intellij IDEA" then I get a error "Error running 'All in my-app': No junit.jar"
s
Is this a jvm project
m
It is
Using kotest 4.6.1
s
Does it work when you run a single test file from the green arrow
m
Yes, it uses the kotest plugin when I run test from gutter icon
s
Ok so you're talking about right clicking on the package list on the left
m
Yes
s
That sounds like a bug in the plugin for sure.
m
Actually, the gutter icon only works if I run a single test. If I use the gutter icon on the class it uses Gradle.
s
That will change if you set the runner to idea in the settings
m
Yes, you're right.
If I right click and run all tests on test folder it seems to use junit
Right clicking on test/kotlin runs all the tests
At least that allows me to generate a run config
l
I don't think it's a bug. Try to see the following:
File | Settings | Build, Execution, Deployment | Build Tools | Gradle
"Run tests using ..."
Maybe your config is set to gradle only
Oh, I see you've set it to "Using IntelliJ", sorry