Is there a way to make IntelliJ generate the corre...
# intellij
o
Is there a way to make IntelliJ generate the correct run configuration?
s
Could you please create a bug at http://kotl.in/issue describing your use case? And share the project if possible. Thanks!
a
I believe this is https://youtrack.jetbrains.com/issue/KT-35372, no need to create a new issue.
The workaround for now is to run the tasks from the Gradle tool window in IDEA, not from gutters.
o
Thank you! @ltongues is there a way to run a specific test case with a task from the Gradle tool window?
a
Yes, but you will have to modify the run configuration, add something like "--tests "com.example.A.foo"" to "arguments" field. You can see how it's done when running a single test from gutter.
a
@Alexey Belkov [JB] it is not a proper workaround because I still can't debug with this solution, I tried it. Is there an ETA for the fix?
a
It's currently targeted to 1.3.70, as can be seen in the YouTrack issue. However, I wonder why this prevents debugging? When the run configuration is already created with the correct arguments, shouldn't "Debug configuration" action just work?
o
The problem is when you want to debug single test cases. You then need to change the run configuration and save it. But usually you only need to debug that test case a few times and then you might move to another test case. You then and up with a configuration for a bunch of test cases.